Plugin_Setup implements Plugin_Activation_Listener, Registerable
Handles the setup of the plugin setup wizard.
Tags
Interfaces, Classes and Traits
- Plugin_Activation_Listener
- Registerable
Table of Contents
- $file : string
- Plugin's entry file.
- $plugin : Licensed_Plugin
- Plugin object.
- $starter : Starter
- Wizard starter.
- __construct() : mixed
- Constructor.
- after_plugin_activation() : void
- Detect the transient and redirect to wizard.
- on_activate() : void
- On plugin activation determine if the setup wizard should run.
- on_deactivate() : void
- Do nothing on deactivation.
- register() : void
- Register the service
- setup() : mixed
- Maybe create the transient for the setup wizard.
Properties
$file
Plugin's entry file.
private
string
$file
$plugin
Plugin object.
private
Licensed_Plugin
$plugin
$starter
Wizard starter.
private
Starter
$starter
Methods
__construct()
Constructor.
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
-
The plugin object.
Return values
mixed —after_plugin_activation()
Detect the transient and redirect to wizard.
public
after_plugin_activation() : void
Return values
void —on_activate()
On plugin activation determine if the setup wizard should run.
public
on_activate() : void
Return values
void —on_deactivate()
Do nothing on deactivation.
public
on_deactivate() : void
Return values
void —register()
Register the service
public
register() : void
Return values
void —setup()
Maybe create the transient for the setup wizard.
public
setup() : mixed