Last User Orders By Roles
v1.0.0This tool is especially useful for store managers who need to keep track of customer engagement and adjust user roles automatically based on purchasing activity.
Screenshot

README
Last User Orders by Roles
Description
This tool is especially useful for store managers who need to keep track of customer engagement and adjust user roles automatically based on purchasing activity.
Features
- Display Last Order Date: Shows the last order date for each user directly in the WordPress admin.
- Role Management: Easily changes user roles based on the time elapsed since their last order.
- Customizable Settings: Adjust the months of inactivity required to trigger a role change, manage user display settings, and more.
Installation
- Download the Plugin:
- Download the zip file from the GitHub repository.
- Install the Plugin:
- Navigate to your WordPress admin panel.
- Go to Plugins > Add New.
- Click on 'Upload Plugin' and select the zip file.
- Activate the plugin after the installation.
- Enjoy it:
Usage
After installation and activation:
- Navigate to
WooCommerce > User Orders by Roleto view and manage settings. - Set parameters such as the "Months Difference" for considering a user inactive, the default role for inactive users, and how many users to display per page.
- Use the added submenu under WooCommerce to manage and view user roles and order activities.
Use Cases and Examples
- Store Managers: Automatically change user roles based on the time elapsed since their last order. In my case, a client wanted something to see if a Wholesale order was last placed X months ago and if it wasn't, he would be assigned a customer role.
- Customer Engagement: Keep track of customer engagement and adjust user roles automatically based on purchasing activity.
Configuration
To configure the plugin, go to the WooCommerce settings page, find the 'User Orders by Role' tab, and adjust the settings:
- Months Difference: Number of months to check for order inactivity.
- Default Role: Role to assign to users who haven't ordered within the specified time.
- Users Per Page: Number of users to display per administration page.
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the GPL-2.0 License. See LICENSE for more information.
Acknowledgements
On this page
Details
- Version
- 1.0.0
- Last repository activity
- October 13, 2026
- License
- GPL-2.0
- Language
- PHP
- Stars
- 0
Compatibility
- WordPress minimum
- 6.4
- WordPress tested up to
- Not declared
- PHP minimum
- 7.4
- WooCommerce minimum
- 6.0
- WooCommerce tested up to
- 9.2.1
Declared by the plugin in its source files. Missing information does not indicate compatibility.
WP-CLI
wp plugin install https://github.com/Open-WP-Club/Last-User-Orders-by-Roles/archive/refs/tags/1.0.0.zip --activatePlugin of the Month
November 2026
Rank Math Automation WPOptimize WooCommerce products for SEO using RankMath
Open-source supporters
These companies help keep our plugins free and maintained.
Meet our supporters →Sponsor us
Our software is free forever. Sponsorships help us maintain all our plugins and build new tools for the WordPress ecosystem.
Become a SponsorContact us about sponsoringExplore
Related Plugins
Better User Search
Improves the search for users in the admin significantly: Search for first name, last, email and much more of users instead of only nicename.
Bulk Order Editor
Bulk Order Editor for WooCommerce allows store managers to quickly modify multiple orders at once, directly from the WordPress admin panel.
Payment Method Highlighter For WooCommerce
A modern WooCommerce plugin that shows a colour-coded payment-method badge when an administrator opens an order. It does not create or process payments—it works with your existing payment gateways.
