Plugin_Setup implements Plugin_Activation_Listener, Registerable

Plugin Setup

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Plugin_Activation_Listener
Registerable

Table of Contents

$plugin  : Licensed_Plugin
Instance of the plugin.
$slug  : string
Plugin slug.
__construct()  : mixed
Constructor.
after_plugin_activation()  : void
Check if the transient has been found, if found redirect.
create_transient()  : void
Creates a short timed transient which is used to detect if the wizard should start.
delete_transient()  : void
Delete the short timed transient.
detected()  : bool
Determine if the transient was created.
maybe_redirect()  : void
Maybe redirect to the wizard on activation.
on_activate()  : mixed
On plugin activation
on_deactivate()  : mixed
On plugin deactivation.
redirect()  : void
Redirect to the generator page with the `wizard` flag enabled.
register()  : mixed
{@inheritdoc}
create_search_results_page()  : mixed
Creates the search results page.

Properties

$plugin

Instance of the plugin.

private Licensed_Plugin $plugin
Tags

Methods

__construct()

Constructor.

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

after_plugin_activation()

Check if the transient has been found, if found redirect.

public after_plugin_activation() : void
Tags
Return values
void

create_transient()

Creates a short timed transient which is used to detect if the wizard should start.

public create_transient() : void
Tags
Return values
void

delete_transient()

Delete the short timed transient.

public delete_transient() : void
Tags
Return values
void

detected()

Determine if the transient was created.

public detected() : bool
Tags
Return values
bool

maybe_redirect()

Maybe redirect to the wizard on activation.

public maybe_redirect() : void
Tags
Return values
void

on_activate()

On plugin activation

public on_activate() : mixed
Tags
Return values
mixed

on_deactivate()

On plugin deactivation.

public on_deactivate() : mixed
Tags
Return values
mixed

redirect()

Redirect to the generator page with the `wizard` flag enabled.

public redirect() : void
Tags
Return values
void

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

create_search_results_page()

Creates the search results page.

private create_search_results_page() : mixed
Tags
Return values
mixed

Search results