It will display a welcome message upon plugin activation that offers the user a 5-day introduction email course for the plugin. After 7 days the module will display another message asking the user to rate the plugin on wordpress.org
-
Insert this repository as sub-module into the existing project
-
Include the file
module.phpin your main plugin file. -
Call the action
wdev-register-pluginwith the params mentioned below. -
Done!
#!php
<?php
// Load the iWorks-Rate module.
include_once 'vendor/iworks/rate/rate.php';
// Register the current plugin.
do_action(
'iworks-register-plugin',
/* plugin ID */ plugin_basename( __FILE__ ),
/* Plugin Title */ __( 'iWorks PWA', 'iworks-pwa' ),
/* Plugin slug */ 'iworks-pwa'
);
// All done!
- Always same, do not change
- The plugin title.
- The plugin slug.
- Bugfix: Anniversary value was not updated correctly. Props for Paweł Patyk.
- Added: Missing textdomain has been added.
- Added: Anniversary notification system to celebrate plugin usage milestones. #1
- Added: New template system for anniversary messages with first-year and subsequent year variations.
- Added:
show_anniversary()method to handle anniversary-specific notifications. - Added:
hide_anniversary()method to manage anniversary notice dismissal. - Added: Support for tracking and displaying plugin usage anniversaries.
- Added: Custom UTM parameters for anniversary-related donation links.
- Updated: Modified
render_message()to support custom template groups. - Updated: Enhanced admin.js to handle anniversary-specific actions.
- Updated: Added new template files for anniversary messages.
- Fixed: Improved donation link handling with proper UTM parameters.
- The
wp_rand()and fallbackmt_rand()functions have been added.
- The
sanitize_text_fieldhas been added.
- Checking for registered plugin has been added.
- Escaping were been added to templates.
- WP function
wp_randhas been copied to avoid to early calling.
- The
rand()function has been removed. - Escaping were been added to templates.
- Min/max values have been fixed.
- Typo in text domain has been fixed.
- Usage of the
wp_rand()function has been improved.
- The
iworks_rate_plugin_datafilter has been added. - Checking nonce for dashbord actions has been added.
- Data input sanitization has been added.
- The defnition of class propery hass been added to avoid deprecated message about creation of dynamic property in PHP 8.2.
- The function
rand()has been replaced by the functionwp_rand(). - The
date()function has been replced by the `gmdate()' function.
- Data input sanitization has been added.
- A problem with escaping empty strings has been resolved.
- Replced
FILTER_SANITIZE_STRINGbyFILTER_DEFAULTto avoid PHP 8x warnings. - Significant increase in sleep time for showing banners.
- Reduced size of
iworks-logo.svgfile.
- Added ability to show "OG — Better Share on Social Media" plugin install proposal.
- Added ability to change slug and title during
iworks-register-plugin.
- Fixed settigns page url (depend on plugin slug).
- Fixed review url.
- Fixed urls.
- Added "Provide us a coffee" and "Settings" by default.