Properties

$instance

$instance : mixed

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

Type

mixed — Default null

$callableFunctions

$callableFunctions : array

Private variable to hold the array of all callable functions.

Type

array — Callable functions.

$callableFunctionsNoAuth

$callableFunctionsNoAuth : array

Private variable to hold the array of all callable functions that don't require regularl authentication.

Type

array — Callable functions.

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Get class name.

Returns

string —

CLASS Class name.

__construct()

__construct() 

MainWP_Child_Callable constructor.

Run any time class is called.

get_instance()

get_instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

init_call_functions()

init_call_functions(boolean  $auth = false) 

Method init_call_functions()

Initiate callable functions.

Parameters

boolean $auth

If true, regular authentication is required.

is_callable_function()

is_callable_function(string  $func) : boolean

Method is_callable_function()

Check if the function is the list of callable functions.

Parameters

string $func

Contains the name of the function to check.

Returns

boolean —

If callable, return true, if not, return false.

is_callable_function_no_auth()

is_callable_function_no_auth(string  $func) : boolean

Method is_callable_function_no_auth()

Check if the function is the list of callable functions that don't require regular authentication.

Parameters

string $func

Contains the name of the function to check.

Returns

boolean —

If callable, return true, if not, return false.

call_function()

call_function(string  $func) 

Method call_function()

Call ceratin function.

Parameters

string $func

Contains the name of the function to call.

call_function_no_auth()

call_function_no_auth(string  $func) 

Method call_function_no_auth()

Call ceratin function without regular authentication if the function is in the $callableFunctionsNoAuth list.

Parameters

string $func

Contains the name of the function to call.

get_site_stats()

get_site_stats() 

Method get_site_stats()

Fire off the get_site_stats() function.

get_site_stats_no_auth()

get_site_stats_no_auth() 

Method get_site_stats_no_auth()

Fire off the get_site_stats_no_auth() function.

install_plugin_theme()

install_plugin_theme() 

Method install_plugin_theme()

Fire off the install_plugin_theme() function.

upgrade_wp()

upgrade_wp() 

Method upgrade_wp()

Fire off the upgrade_wp() function.

upgrade_translation()

upgrade_translation() 

Method upgrade_translation()

Fire off the upgrade_translation() function.

upgrade_plugin_theme()

upgrade_plugin_theme() 

Method upgrade_plugin_theme()

Fire off the upgrade_plugin_theme() function.

theme_action()

theme_action() 

Method theme_action()

Fire off the theme_action() function.

plugin_action()

plugin_action() 

Method plugin_action()

Fire off the plugin_action() function.

get_all_plugins()

get_all_plugins() 

Method get_all_plugins()

Fire off the get_all_plugins() function.

get_all_themes()

get_all_themes() 

Method get_all_themes()

Fire off the get_all_themes() function.

get_all_users()

get_all_users() 

Method get_all_users()

Fire off the get_all_users() function.

user_action()

user_action() 

Method user_action()

Fire off the user_action() function.

search_users()

search_users() 

Method search_users()

Fire off the search_users() function.

get_all_posts()

get_all_posts() 

Method get_all_posts()

Fire off the get_all_posts() function.

get_all_pages()

get_all_pages() 

Method get_all_pages()

Fire off the get_all_pages() function.

comment_action()

comment_action() 

Method comment_action()

Fire off the comment_action() function.

get_all_comments()

get_all_comments() 

Method get_all_comments()

Fire off the get_all_comments() function.

comment_bulk_action()

comment_bulk_action() 

Method comment_bulk_action()

Fire off the comment_bulk_action() function.

maintenance_site()

maintenance_site() 

Method maintenance_site()

Fire off the maintenance_site() function.

new_post()

new_post() 

Method new_post()

Fire off the new_post() function.

post_action()

post_action() 

Method post_action()

Fire off the post_action() function.

new_admin_password()

new_admin_password() 

Method new_admin_password()

Fire off the new_admin_password() function.

new_user()

new_user() 

Method new_user()

Fire off the new_user() function.

cloneinfo()

cloneinfo() 

Method cloneinfo()

Fire off the cloneinfo() function.

backup_poll()

backup_poll() 

Method backup_poll()

Fire off the backup_poll() function.

backup_checkpid()

backup_checkpid() 

Method backup_checkpid()

Fire off the backup_checkpid() function.

backup()

backup(boolean  $write = true) : array

Method backup()

Fire off the backup() function.

Parameters

boolean $write

Whether or not to execute MainWP_Helper::write(), Default: true.

Returns

array —

Action result.

get_site_icon()

get_site_icon() 

Method get_site_icon()

Fire off the get_site_icon() function.

get_security_stats()

get_security_stats() 

Method get_security_stats()

Fire off the get_security_stats() function.

do_security_fix()

do_security_fix() 

Method do_security_fix()

Fire off the do_security_fix() function.

do_security_un_fix()

do_security_un_fix() 

Method do_security_un_fix()

Fire off the do_security_un_fix() function.

settings_tools()

settings_tools() 

Method settings_tools()

Fire off the settings_tools() function.

bulk_settings_manager()

bulk_settings_manager() 

Method bulk_settings_manager()

Fire off the action() function.

custom_post_type()

custom_post_type() 

Method custom_post_type()

Fire off the action() function.

backup_buddy()

backup_buddy() 

Method backup_buddy()

Fire off the action() function.

vulner_checker()

vulner_checker() 

Method vulner_checker()

Fire off the action() function.

time_capsule()

time_capsule() 

Method time_capsule()

Fire off the action() function.

wp_staging()

wp_staging() 

Method wp_staging()

Fire off the action() function.

extra_execution()

extra_execution() 

Method extra_execution()

Additional functions to execute.

uploader_action()

uploader_action() 

Method uploader_action()

Fire off the uploader_action() function.

wordpress_seo()

wordpress_seo() 

Method wordpress_seo()

Fire off the action() function.

client_report()

client_report() 

Method client_report()

Fire off the action() function.

page_speed()

page_speed() 

Method page_speed()

Fire off the action() function.

woo_com_status()

woo_com_status() 

Method woo_com_status()

Fire off the action() function.

links_checker()

links_checker() 

Method links_checker()

Fire off the action() function.

wordfence()

wordfence() 

Method wordfence()

Fire off the action() function.

ithemes()

ithemes() 

Method ithemes()

Fire off the action() function.

updraftplus()

updraftplus() 

Method updraftplus()

Fire off the action() function.

wpvivid_backuprestore()

wpvivid_backuprestore() 

Method wpvivid_backuprestore()

Fire off the action() function.

backup_wp()

backup_wp() 

Method backup_wp()

Fire off the action() function.

wp_rocket()

wp_rocket() 

Method wp_rocket()

Fire off the action() function.

backwpup()

backwpup() 

Method backwpup()

Fire off the action() function.

delete_backup()

delete_backup() 

Method delete_backup()

Delete backup.

update_child_values()

update_child_values() 

Method update_child_values()

Update the MainWP Child site options.

branding_child_plugin()

branding_child_plugin() 

Method branding_child_plugin()

Fire off the action() function.

code_snippet()

code_snippet() 

Method code_snippet()

Fire off the code_snippet() function.

disconnect()

disconnect() 

Method disconnect()

Disconnect the child site from the current MainWP Dashboard.

deactivate()

deactivate() 

Method deactivate()

Deactivate the MainWP Child plugin in the site.

backup_full()

backup_full(string  $file_name) : array

Method backup_full()

Fire off the backup_full() function.

Parameters

string $file_name

Contains the backup file name.

Returns

array —

Action result.

backup_db()

backup_db(string  $file_name = '', string  $file_extension = 'zip') : array

Method backup_db()

Fire off the backup_db() function.

Parameters

string $file_name

Contains the backup file name.

string $file_extension

Contains the backup file extension.

Returns

array —

Action result.