Plugin_Setup implements Standard_Service, Plugin_Activation_Listener, Registerable

Sets up the plugin on install.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Standard_Service
Plugin_Activation_Listener
Registerable

Table of Contents

$file  : mixed
$plugin  : Licensed_Plugin
Plugin instance
$starter  : Starter
Wizard starter.
__construct()  : mixed
after_plugin_activation()  : void
Detect the transient and redirect to wizard.
on_activate()  : mixed
on_deactivate()  : mixed
register()  : mixed
setup()  : mixed
create_restaurant_page()  : mixed
set_restaurant_page_setting()  : mixed

Properties

Methods

__construct()

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

after_plugin_activation()

Detect the transient and redirect to wizard.

public after_plugin_activation() : void
Return values
void

on_activate()

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

on_deactivate()

public on_deactivate(mixed $network_wide) : mixed
Parameters
$network_wide : mixed
Return values
mixed

register()

public register() : mixed
Return values
mixed

create_restaurant_page()

private create_restaurant_page() : mixed
Return values
mixed

set_restaurant_page_setting()

private set_restaurant_page_setting(mixed $page_id) : mixed
Parameters
$page_id : mixed
Return values
mixed

Search results