Activator
Activator class
Namespace: WebberZone\Contextual_Related_Posts\Admin
Since: 3.5.0
Source: includes/admin/class-activator.php line 21
Methods
__construct()
Constructor class.
Since: 3.5.0
Line: 28
public function __construct( );
activation_hook() static
Fired when the plugin is Network Activated.
Since: 3.5.0
Line: 43
static public function activation_hook( $network_wide );
| Type | Name | Description |
|---|---|---|
boolean |
$network_wide |
True if WPMU superadmin uses |
single_activate() static
Fired for each blog when the plugin is activated.
Since: 3.5.0
Line: 72
static public function single_activate( );
activate_new_site() static
Fired when a new site is activated with a WPMU environment.
Since: 3.5.0
Line: 110
static public function activate_new_site( $blog );
| Type | Name | Description |
|---|---|---|
int|\WP_Site |
$blog |
WordPress 5.1 passes a WP_Site object. |
deactivation_hook() static
Fired when the plugin is deactivated.
Since: 3.5.0
Line: 138
static public function deactivation_hook( $network_wide );
| Type | Name | Description |
|---|---|---|
boolean |
$network_wide |
True if WPMU superadmin uses |
single_deactivate() static
Fired for each blog when the plugin is deactivated.
Since: 3.5.0
Line: 169
static public function single_deactivate( );
update_db_check() static
Function to call install function if needed.
Since: 3.5.0
Line: 185
static public function update_db_check( );