\MainWP\ChildMainWP_Child_Callable

Class MainWP_Child_Callable

Manage functions that can be executed on the child site.

Summary

Methods
Properties
Constants
get_class_name()
__construct()
get_instance()
init_call_functions()
is_callable_function()
is_callable_function_no_auth()
call_function()
call_function_no_auth()
get_site_stats()
get_site_stats_no_auth()
install_plugin_theme()
upgrade_wp()
upgrade_translation()
upgrade_plugin_theme()
theme_action()
plugin_action()
get_all_plugins()
get_all_themes()
get_all_users()
user_action()
search_users()
get_all_posts()
get_all_pages()
comment_action()
get_all_comments()
comment_bulk_action()
maintenance_site()
new_post()
post_action()
new_admin_password()
new_user()
cloneinfo()
backup_poll()
backup_checkpid()
backup()
get_site_icon()
check_abandoned()
get_security_stats()
do_security_fix()
do_security_un_fix()
settings_tools()
bulk_settings_manager()
custom_post_type()
backup_buddy()
vulner_checker()
time_capsule()
wp_staging()
extra_execution()
uploader_action()
wordpress_seo()
wp_seopress()
client_report()
page_speed()
woo_com_status()
links_checker()
wordfence()
ithemes()
updraftplus()
wpvivid_backuprestore()
backup_wp()
wp_rocket()
backwpup()
db_updater()
jetpack_protect()
jetpack_scan()
delete_actions()
verify_action()
delete_backup()
update_child_values()
branding_child_plugin()
cache_purge_action()
code_snippet()
disconnect()
deactivate()
api_backups_mysqldump()
No public properties found
No constants found
backup_full()
backup_db()
$instance
N/A
No private methods found
$callableFunctions
$callableFunctionsNoAuth
N/A

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.

check_abandoned()

check_abandoned() 

Method check_abandoned()

Fire off the check_abandoned() 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.

wp_seopress()

wp_seopress() 

Method wp_seopress()

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.

db_updater()

db_updater() 

Method db_updater()

Fire off the action() function.

jetpack_protect()

jetpack_protect() 

Method jetpack_protect()

Fire off the action() function.

jetpack_scan()

jetpack_scan() 

Method jetpack_scan()

Fire off the action() function.

delete_actions()

delete_actions() 

Method delete_actions()

Delete Non-MainWP actions.

verify_action()

verify_action() 

Method verify_action()

Handle verify authed action.

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.

cache_purge_action()

cache_purge_action() 

Method update_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.

api_backups_mysqldump()

api_backups_mysqldump() 

Method api_backups_mysqldump()

Fire off the action() function.

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.