Plugin_Setup implements Plugin_Activation_Listener, Registerable, Standard_Service

Hook into the plugin activation process.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Plugin_Activation_Listener
Registerable
Standard_Service

Table of Contents

$file  : string
Plugin's entry file
$plugin  : Plugin
Plugin instance
$starter  : Starter
Wizard starter
__construct()  : mixed
Get things started
after_plugin_activation()  : mixed
on_activate()  : mixed
on_deactivate()  : void
Do nothing.
register()  : void
Register the service

Properties

Methods

__construct()

Get things started

public __construct(string $file, Licensed_Plugin $plugin) : mixed
Parameters
$file : string
$plugin : Licensed_Plugin
Tags
Return values
mixed

after_plugin_activation()

public after_plugin_activation() : mixed
Tags
Return values
mixed

on_activate()

public on_activate(mixed $network_wide) : mixed
Parameters
$network_wide : mixed
Tags
Return values
mixed

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
Tags
Return values
void

Search results