$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.
__construct() __construct(resource $plugin_file) MainWP_Child constructor. Run any time class is called. Parameters resource $plugin_file MainWP Child plugin file.
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.
template_redirect() template_redirect() Method template_redirect() Handle the template redirect for 404 maintenance alerts.
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
parse_init_extensions() parse_init_extensions() Method parse_init_extensions() Parse MainWP Extension initiations.