Properties

$version

$version : string

Public static variable to hold the current plugin version.

Type

string — Current plugin version.

$metaboxes

$metaboxes : object

Public variable to hold the Metaboxes instance.

Type

object — Metaboxes.

$instance

$instance : mixed

Private static variable to hold the single instance of the class.

Type

mixed — Default null

$current_version

$current_version : string

Private variable to hold the current version.

Type

string — The plugin current version.

$plugin_slug

$plugin_slug : string

Private variable to hold the plugin slug (mainwp/mainwp.php)

Type

string — Plugin slug.

Methods

load_all_options()

load_all_options() : array

Method load_all_options()

Load all wp_options data.

Returns

array —

$alloptions Array of all options.

parse_request()

parse_request() 

Method parse_request()

Includes api.php.

localization()

localization() 

Method localization()

Loads plugin language files.

wp_mail_failed()

wp_mail_failed(string  $error) 

Method wp_mail_failed()

Check if there has been a wp mail failer.

Parameters

string $error

Array of error messages.

get_version()

get_version() : string

Method get_version()

Get current plugin version.

Returns

string —

Current plugin version.

mainwp_cronpingchilds_action()

mainwp_cronpingchilds_action() 

Method mainwp_cronpingchilds_action()

Run cron ping child's action.

mainwp_cronbackups_continue_action()

mainwp_cronbackups_continue_action() 

Method mainwp_cronbackups_continue_action()

Run cron backups continue action.

mainwp_cronbackups_action()

mainwp_cronbackups_action() 

Method mainwp_cronbackups_action()

Run cron backups action.

mainwp_cronstats_action()

mainwp_cronstats_action() 

Method mainwp_cronstats_action()

Run cron stats action.

mainwp_cronupdatescheck_action()

mainwp_cronupdatescheck_action() 

Method mainwp_cronupdatescheck_action()

Run cron updates check action.

mainwp_croncheckstatus_action()

mainwp_croncheckstatus_action() 

Method mainwp_croncheckstatus_action()

Run cron check sites status action.

mainwp_cronchecksitehealth_action()

mainwp_cronchecksitehealth_action() 

Method mainwp_cronchecksitehealth_action()

Run cron check sites health action.

is_mainwp_pages()

is_mainwp_pages() : boolean

Method is_mainwp_pages()

Get the current page and check it for "mainwp_".

Returns

boolean —

ture|false.

init()

init() 

Method init()

Instantiate Plugin.

login_form_redirect()

login_form_redirect() 

Method login_form_redirect()

Login redirect.

after_setup_theme()

after_setup_theme() 

Method after_setup_theme()

After setup theme hook, to support post thumbnails.

admin_redirects()

admin_redirects() 

Method admin_redirects()

MainWP admin redirects.

init_session()

init_session() 

Method init_session()

Check current page & initiate a session.

admin_enqueue_scripts()

admin_enqueue_scripts(mixed  $hook) 

Method admin_enqueue_scripts()

Enqueue all Mainwp Admin Scripts.

Parameters

mixed $hook

Enqueue hook.

admin_enqueue_styles()

admin_enqueue_styles(mixed  $hook) 

Method admin_enqueue_styles()

Enqueue all Mainwp Admin Styles.

Parameters

mixed $hook

Enqueue hook.

admin_menu()

admin_menu() 

Method admin_menu()

Add Bulk Post/Pages menue.

enqueue_postbox_scripts()

enqueue_postbox_scripts() 

Method enqueue_postbox_scripts()

Enqueue postbox scripts.

activated_check()

activated_check() 

Method activated_check()

Activated check.

activation()

activation() 

Method activation()

Activate MainWP.

deactivation()

deactivation() 

Method deactivation()

Deactivate MainWP.

update()

update() 

Method update()

Update MainWP.

is_single_user()

is_single_user() : boolean

Method is_single_user()

Check if single user environment.

Returns

boolean —

true|false.

is_multi_user()

is_multi_user() : boolean

Method is_multi_user()

Check if multi user environment.

Returns

boolean —

true|false.

get_plugin_slug()

get_plugin_slug() 

Method get_plugin_slug()

Get MainWP Plugin Slug.