Activator
Plugin activator class.
Namespace: WebberZone\WFP\Admin
Since: 3.1.0
Source: includes/admin/class-activator.php line 21
Methods
__construct()
Constructor class.
Since: 3.1.0
Line: 28
public function __construct( );
activation_hook() static
Fired when the plugin is Network Activated.
Since: 3.1.0
Line: 42
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.1.0
Line: 71
static public function single_activate( );
activate_new_site() static
Fired when a new site is activated with a WPMU environment.
Since: 3.1.0
Line: 83
static public function activate_new_site( $blog );
| Type | Name | Description |
|---|---|---|
int|\WP_Site | $blog | WordPress 5.1 passes a WP_Site object. |