Properties

$is_backwpup_installed

$is_backwpup_installed : boolean

Type

boolean — Whether or not BackWPup plugin is installed. Default: false.

$is_backwpup_pro

$is_backwpup_pro : boolean

Type

boolean — Whether or not BackWPup is Pro version. Default: false.

$plugin_translate

$plugin_translate : string

Type

string — Plugin slug translation string.

$instance

$instance : null

Type

null — Holds the Public static instance of MainWP_Child_Back_WP_Up

$information

$information : array

Type

array — Returned response array for MainWP BackWPup Extension actions.

$software_version

$software_version : string

Type

string — Software version.

$exclusions

$exclusions : array<mixed,string[]>

Type

array<mixed,string[]> — backwpup_cfg variables.

Methods

mainwp_backwpup_handle_fatal_error()

mainwp_backwpup_handle_fatal_error() 

MainWP BackWPup fatal error handler.

init()

init() 

MainWP BackWPup Extension initiation.

do_site_stats()

do_site_stats() 

Record BackWPup MainWP Child Reports log.

sync_others_data()

sync_others_data(array  $information, array  $data = array()) : array

Sync other data from $data[] and merge with $information[]

Parameters

array $information

Returned response array for MainWP BackWPup Extension actions.

array $data

Other data to sync to $information array.

Returns

array —

$information Returned information array with both sets of data.

get_destinations_list()

get_destinations_list() : array

Get backup destinations list.

Throws

\MainWP\Child\Exception

Error Message.

Returns

array —

$jobdest Backup destination list.

all_plugins()

all_plugins(array  $plugins) : array

Hide BackWPup Plugin from the WordPress Installed plugin list.

Parameters

array $plugins

Installed plugins.

Returns

array —

$plugins Installed plugins without BackWPup Plugin on the list.

remove_menu()

remove_menu() 

Remove BackWPup Plugin from the WordPress Admin.

init_download_backup()

init_download_backup() 

Initiate download link.

edit_form_post_save()

edit_form_post_save(  $post_data,   $id) 

Edit form post save.

Parses & saves files, folders, boolean fields excluding any unwanted files or directories. [Taken from BackWPup_JobType_File::edit_form_post_save with some tweaks].

Parameters

$post_data

Post data to save.

$id

Post ID.

show_hide()

show_hide() : array<mixed,integer>|string

Show/Hide BackWPup Plugin.

Returns

array<mixed,integer>|string —

Return 1 on HIDE, Empty string on SHOW.

information()

information() : array

Build the MainWP BackWPup Page Settings.

Returns

array —

$output Returned information array.

delete_log()

delete_log() : array<mixed,integer>|array<mixed,string>

Delete BackWPup Log.

Returns

array<mixed,integer>|array<mixed,string> —

On success return success[1] & error[] message on failure.

delete_job()

delete_job() : array|array<mixed,integer>|array<mixed,string>

Delete backup job.

Returns

array|array<mixed,integer>|array<mixed,string> —

On success return success[1] & error['message'] on failure.

delete_backup()

delete_backup() : array|array<mixed,integer>|array<mixed,string>

Delete backup.

Returns

array|array<mixed,integer>|array<mixed,string> —

On success return success[1] response['DELETED'] & error['message'] on failure.

view_log()

view_log() : array|array<mixed,integer>|array<mixed,string>

View BackWPup log.

Returns

array|array<mixed,integer>|array<mixed,string> —

On success return $output[] & error['message'] on failure.

create_nonce_without_session()

create_nonce_without_session(integer  $action = -1) : string|false

Create security nounce without session.

Parameters

integer $action

Action performing.

Returns

string|false —

Return nonce or FALSE on failure.

verify_nonce_without_session()

verify_nonce_without_session(string  $nonce, integer  $action = -1) : boolean|integer

Verify nonce without session.

Parameters

string $nonce

Nonce to verify.

integer $action

Action to perform.

Returns

boolean|integer —

FALSE on failure. 1 or 2 on success.

ajax_working()

ajax_working() : array

BackWPup Ajax Working.

Returns

array —

Return success array[ success, response ]

backup_now()

backup_now() : array

Backup now.

Returns

array —

Response array[ success, response, logfile ] or array[ error ]

backup_abort()

backup_abort() : array|array<mixed,string>

Abort backup.

Returns

array|array<mixed,string> —

Return array or error[message] on failure.

wp_list_table_dependency()

wp_list_table_dependency() 

WordPress list table dependency.

wizard_system_scan()

wizard_system_scan() : array|array<mixed,string>

Wizard system scan.

Returns

array|array<mixed,string> —

Return array or error[message] on failure.

destination_email_check_email()

destination_email_check_email() : array|\Exception

Check destination email.

Returns

array|\Exception —

Return response array.

get_job_files()

get_job_files() : array

Get job files.

Returns

array —

Response array containing folder locations and size.

get_child_tables()

get_child_tables() : array

Get Child Site Tables.

Returns

array —

Query response containing the tables.

insert_or_update_jobs_global()

insert_or_update_jobs_global() : array

Insert or update global jobs.

Returns

array —

Response array containing job_id, changes & message array.

check_backwpup_messages()

check_backwpup_messages() : array|array<mixed,string>

Check BackWPup Message.

Returns

array|array<mixed,string> —

Returns an empty array or Error[], Message[].