\MainWP\ChildMainWP_Child

Class MainWP_Child

Manage all MainWP features.

Summary

Methods
Properties
Constants
__construct()
load_all_options()
update()
localization()
template_redirect()
parse_init()
init_check_login()
admin_init()
deactivation()
activation()
plugin_settings_link()
$version
$plugin_slug
No constants found
No protected methods found
No protected properties found
N/A
parse_init_extensions()
$update_version
$plugin_dir
N/A

Properties

$version

$version : string

Public static variable containing the latest MainWP Child plugin version.

Type

string — MainWP Child plugin version.

$plugin_slug

$plugin_slug : string

Public variable containing the MainWP Child plugin slug.

Type

string — MainWP Child plugin slug.

$update_version

$update_version : string

Private variable containing the latest MainWP Child update version.

Type

string — MainWP Child update version.

$plugin_dir

$plugin_dir : string

Private variable containing the MainWP Child plugin directory.

Type

string — MainWP Child plugin directory.

Methods

load_all_options()

load_all_options() : array|boolean

Method load_all_options()

Load all MainWP Child plugin options.

Returns

array|boolean —

Return array of options or false on failure.

update()

update() : void

Method update()

Update the MainWP Child plugin version (mainwp_child_update_version) option.

localization()

localization() 

Method localization()

Load the MainWP Child plugin textdomains.

template_redirect()

template_redirect() 

Method template_redirect()

Handle the template redirect for 404 maintenance alerts.

init_check_login()

init_check_login() 

Method init_check_login()

Initiate the check login process.

admin_init()

admin_init() 

Method admin_init()

If the current user is administrator initiate the admin ajax.

deactivation()

deactivation(boolean  $deact = true) 

Method deactivation()

Deactivate the MainWP Child plugin and delete unwanted data.

Parameters

boolean $deact

Whether or not to deactivate pugin. Default: true.

activation()

activation() 

Method activation()

Activate the MainWP Child plugin and delete unwanted data.

plugin_settings_link()

plugin_settings_link(array  $actions) : array

Method plugin_settings_link()

On the plugins page add a link to the MainWP settings page.

Parameters

array $actions

An array of plugin action links. Should include deactivate.

Returns

array