Plugin_Setup
in package
implements
Plugin_Activation_Listener, Registerable, Standard_Service
Handles automated redirect to the setup wizard after plugin activation.
Table of Contents
Interfaces
- Plugin_Activation_Listener
- Registerable
- Standard_Service
Properties
- $file : string
- Plugin's entry file
- $plugin : Licensed_Plugin
- Plugin instance
- $starter : Starter
- Wizard starter.
Methods
- __construct() : mixed
- Get things started
- 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.
- register() : void
- Register the service
Properties
$file
Plugin's entry file
private
string
$file
$plugin
Plugin instance
private
Licensed_Plugin
$plugin
$starter
Wizard starter.
private
Starter
$starter
Methods
__construct()
Get things started
public
__construct(string $file, Licensed_Plugin $plugin) : mixed
Parameters
- $file : string
- $plugin : Licensed_Plugin
after_plugin_activation()
Detect the transient and redirect to wizard.
public
after_plugin_activation() : void
on_activate()
On plugin activation determine if the setup wizard should run.
public
on_activate(mixed $network_wide) : void
Parameters
- $network_wide : mixed
on_deactivate()
Do nothing.
public
on_deactivate(mixed $network_wide) : void
Parameters
- $network_wide : mixed
register()
Register the service
public
register() : void