Releases: EngineScript/wc-free-gift-coupons-bulk-coupons-generator
Releases · EngineScript/wc-free-gift-coupons-bulk-coupons-generator
Release v1.5.0
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
Release v1.4.0
Breaking Changes
- Text Domain Standardization: Changed text domain from
WC-Free-Gift-Coupons-Bulk-Coupons-Generatortowc-free-gift-coupons-bulk-coupons-generatorto comply with WordPress standards that require only lowercase letters, numbers, and hyphens.
Security
- Nonce Verification Fix: Added proper nonce verification in the
admin_initmethod to prevent unauthorized form processing and address WordPress.Security.NonceVerification.Missing warning.
Improvements
- Deprecated Function Removal: Removed the deprecated
load_plugin_textdomain()call as WordPress automatically handles plugin translations for plugins hosted on WordPress.org since version 4.6. - Repository Links Update: Updated all GitHub repository links to use lowercase format to match the renamed repository.
- Testing Support: Added
wc_free_gift_bulk_coupons_is_loaded()helper function to improve compatibility with testing frameworks and replace the removed test function.
Development
- Package References: Updated all
@packagereferences to use the new lowercase text domain format.
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
Release v1.3.0
Security
- Secure Coupon Generation: Replaced
wp_rand()with the more securerandom_int()for generating coupon codes, ensuring cryptographic-level randomness and reducing the risk of predictable codes. - Streamlined Nonce Verification: Removed a redundant nonce check in
admin_initto simplify the security workflow, as the primary verification is already handled inhandle_coupon_generation.
Bug Fixes
- Corrected Transient Removal: Fixed a bug in
uninstall.phpwhere an incorrect transient key was used, preventing cached product data from being properly deleted upon plugin uninstallation.
Refactoring
- Code Cleanup: Removed the unused
fgbcg_admin_menu()function to improve code clarity and maintainability.
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
Release v1.2.0
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
Release v1.1.0
Improvements & Fixes
- Text Domain Standardization: Fixed WordPress textdomain to match plugin slug
WC-Free-Gift-Coupons-Bulk-Coupons-Generator - Internationalization Compliance: Updated all translation functions and POT file to use consistent textdomain
- Code Quality: Enhanced code documentation and inline comments for better maintainability
- WordPress Standards: Improved compliance with WordPress coding standards and best practices
- Coupon Generation: Restored full character set for coupon codes (all lowercase letters and digits)
- File Structure: Renamed POT file to match WordPress naming conventions
- Security Enhancement: Additional input validation and sanitization improvements
- Documentation: Added comprehensive changelog.txt file for WordPress.org compatibility
Technical Changes
- Updated load_plugin_textdomain() to use correct textdomain
- Standardized all (), esc_html(), esc_attr_e() function calls
- Enhanced PHPDoc comments and function documentation
- Improved error logging and debug information
- Added comprehensive version tracking across all project files
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
Release v1.0.0
Initial Release
- Core Features: WordPress plugin for generating bulk free gift coupons that work with Free Gift Coupons for WooCommerce
- Admin Interface: User-friendly admin panel in WooCommerce menu
- Multi-Product Support: Select single or multiple products for free gift coupon generation
- Custom Prefixes: Add custom prefixes to coupon codes (e.g., GIFT-ABC123)
- Bulk Generation: Generate up to 100 coupons at once with timeout protection
- Free Gift Compatibility: Creates coupons with proper gift_info data structure for Free Gift Coupons for WooCommerce plugin
- Security First: Enterprise-grade security with nonces, capability checks, input sanitization
- Rate Limiting: Prevent concurrent generation requests
- Performance Optimized: Caching, optimized queries, memory-efficient processing
- Internationalization: Ready for translation into multiple languages
- WordPress Standards: Follows all WordPress coding standards and best practices
- OWASP Compliant: Meets OWASP security guidelines for web applications
- Error Handling: Graceful error handling with user-friendly messages
- Responsive Design: Works perfectly on desktop and mobile devices
Security Features
- XSS Prevention: All outputs properly escaped using WordPress functions
- CSRF Protection: WordPress nonce verification for all form submissions
- Input Validation: Comprehensive sanitization and validation of all inputs
- SQL Injection Protection: Uses WordPress/WooCommerce APIs exclusively
- Rate Limiting: User-based request limiting with transients
- HTTP Security Headers: X-Content-Type-Options, X-Frame-Options
- File System Protection: .htaccess protection for sensitive files
Installation
- Download the zip file
- Upload to your WordPress site through the Plugins > Add New > Upload menu
- Activate the plugin
- Navigate to WooCommerce > Coupon Generator to start using the plugin
Requirements
- WordPress 6.5 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher