mainwp-child/classclass-mainwp-child-back-wp-up.php

MainWP Child BackWP UP

This file handles specific action for the MainWP BackWPup Extension.

Credits

Plugin-Name: BackWPup Plugin-URI: http://backwpup.com Author: Inpsyde GmbH Author URI: http://inpsyde.com License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0

The code is used for the MainWP BackWPup Extension Extension URL: https://mainwp.com/extension/backwpup/

Classes

MainWP_Child_Back_WP_Up Class MainWP_Child_Back_WP_Up
MainWP_Fake_Wp_Screen Class MainWP_Fake_Wp_Screen

Constants

DOING_AJAX

DOING_AJAX = true

Checks whether ajax job is in progress.

Functions

mainwp_backwpup_wp_die_ajax_handler()

mainwp_backwpup_wp_die_ajax_handler(string  $message) : string

MainWP BackWPup WP Die ajax handler.

Parameters

string $message

Error message container.

Returns

string —

Error message.

convert_to_screen()

convert_to_screen(  $hook_name) : \MainWP\Child\MainWP_Fake_Wp_Screen

Convert to screen.

We need this because BackWPup_Page_Jobs extends WP_List_Table. which uses convert_to_screen.

Parameters

$hook_name

Hook name.

Returns

\MainWP\Child\MainWP_Fake_Wp_Screen

add_screen_option()

add_screen_option(mixed  $option, array  $args = array()) 

Adds the WP Fake Screen option.

Parameters

mixed $option

Options.

array $args

Arguments.

mainwp_backwpup_get_exclude_dirs()

mainwp_backwpup_get_exclude_dirs(array  $folder) : array

Taken from BackWPup_JobType_File::get_exclude_dirs.

Parameters

array $folder

Folders to exclude.

Returns

array —

Return folders list.