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.php
in your main plugin file. -
Call the action
wdev-register-plugin
with 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.
- Cheking for registered plugin has been added.
- Escaping were been added to templates.
- WP function
wp_rand
has 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_data
filter 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_STRING
byFILTER_DEFAULT
to avoid PHP 8x warnings. - Significant increase in sleep time for showing banners.
- Reduced size of
iworks-logo.svg
file.
- 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.