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