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.

$check_ver_update

$check_ver_update : string

Private variable to hold the check update version number.

Type

string — The plugin current update version.

$plugin_slug

$plugin_slug : string

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

Type

string — Plugin slug.

Methods

get_dashboard_version()

get_dashboard_version() : string

Method get_dashboard_version()

Get dashboard version.

Returns

string —

$version Version.

load_all_options()

load_all_options() : array

Method load_all_options()

Load all wp_options data.

Returns

array —

$alloptions Array of all options.

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_cronreconnect_action()

mainwp_cronreconnect_action() 

Method mainwp_cronreconnect_action()

Run cron stats action.

mainwp_cronupdatescheck_action()

mainwp_cronupdatescheck_action() 

Method mainwp_cronupdatescheck_action()

Run cron updates check action.

mainwp_crondeactivatedlicensesalert_action()

mainwp_crondeactivatedlicensesalert_action() 

Method mainwp_crondeactivatedlicensesalert_action()

Run cron activated licenses alert 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.

is_mainwp_site_page()

is_mainwp_site_page() : boolean

Method is_mainwp_site_page()

Checks if the current page is under the site mode.

Returns

boolean —

ture|false.

init()

init() 

Method init()

Instantiate Plugin.

after_setup_theme()

after_setup_theme() 

Method after_setup_theme()

After setup theme hook, to support post thumbnails.

hook_admin_update_check()

hook_admin_update_check() 

Method hook_admin_update_check()

admin_redirects()

admin_redirects() 

Method admin_redirects()

MainWP admin redirects.

init_session()

init_session() 

Method init_session()

Check current page & initiate a session.

clear_sessions()

clear_sessions() 

Method clear_sessions()

When logout clear the sessions to reset.

admin_enqueue_scripts()

admin_enqueue_scripts() 

Method admin_enqueue_scripts()

Enqueue all Mainwp Admin Scripts.

admin_enqueue_scripts_fix_conflict()

admin_enqueue_scripts_fix_conflict() 

Method admin_enqueue_scripts_fix_conflict()

Enqueue Admin Scripts fix conflict.

admin_enqueue_styles()

admin_enqueue_styles() 

Method admin_enqueue_styles()

Enqueue all Mainwp Admin Styles.

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_install()

update_install() 

Method update_install()

Update MainWP.

check_to_updates()

check_to_updates() 

Method check_to_updates()

To check updates options.

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.