v2.2.6 - Admin Panel Improvements and COD Block Statistics
What's New in v2.2.6
π¨ Admin Panel Improvements
Custom Order Status Creation
- Restored the missing UI to create custom order statuses directly from the Order Status Mapping section
- Simple input field and button to create new statuses on-the-fly
- AJAX-powered creation with instant updates to status dropdowns
- No more need to use external plugins for custom statuses!
Updated Descriptions
- Clearer, more intuitive descriptions for order status mappings:
- Successful status: "Orders with this status will be allowed for future COD payments"
- Refused status: "Orders with this status will be blocked for future COD payments"
Simplified Settings
- Removed the Notification Email field from Rating Settings for a cleaner interface
π COD Block Statistics Dashboard
Real-time Analytics
Track how often customers are blocked from using cash-on-delivery payment:
-
4 Time Period Counters:
- Today
- Last 7 Days
- Last 30 Days
- All Time
-
Recent Blocks Table:
- Shows last 10 blocked attempts
- Displays timestamp, customer email, and rating
- Helps identify patterns and problem customers
-
Automatic Data Management:
- Block events tracked automatically during checkout
- 90-day data retention policy
- No performance impact on checkout process
π§ Technical Details
- Block events stored in
codguard_block_eventsWordPress option - Statistics calculated dynamically on settings page load
- Code passes PHPStan level 5 static analysis
- PSR-12 coding standards compliance (WordPress conventions)
- Zero errors in code quality checks
π¦ Installation
- Download
codguard-2.2.6.zip - Go to WordPress Admin β Plugins β Add New β Upload Plugin
- Upload the zip file and activate
- Configure your settings under WooCommerce β CodGuard
π Upgrading from v2.2.5
This is a feature release with no breaking changes. Simply install and activate - all your settings will be preserved.
Full Changelog: v2.2.5...v2.2.6