-
Notifications
You must be signed in to change notification settings - Fork 2
Before start!
You must implement codes present in the file tws-admin-onboarding.php to your own plugin file so the onboarding process starts once the plugin is activated.
On this file, there is an Onboarding::activate() method that handles redirection to the onboarding wizard page after the plugin is activated.
This method is hooked to register_activataion_hook() function which triggers redirection.
Inside this method, various parameters are checked so redirection should or shouldn't happen to the onboarding page. The default implemented checks are:
- Whether the plugin has been installed before or not, and
- Whether the currently installed version of PHP is equal to or greater than PHP
v7.0.
This check parameter is then passed to the config file which verifies and redirects to the onboarding wizard page.
You can modify and/or implement your own checks so no unnecessary redirection happens to the onboarding page after plugin activation.
NOTE: This framework can be used as a plugin in itself for testing purposes. Simply update codes where
@todotags are assigned.