$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Clone
Manage child site cloning process.
check_security(string $action = -1, string $query_arg = 'security') : boolean
Method check_security()
Check the clone request security.
string | $action | Contains the action that is being performed. |
string | $query_arg | Contains the query argument. |
true|false If secure, return true, if not, return false.
is_archive(string $file_name, string $prefix = '', string $suffix = '') : boolean
Method is_archive()
Check if the file is archive file.
string | $file_name | Contains the file name. |
string | $prefix | Contains the prefix. |
string | $suffix | Contains the sufix. |
true|false If the file is archive, return true, if not, return false.
clone_backup_get_file(resource $file, boolean $testFull) : resource
Method clone_backup_get_file()
Get the backup file to download and clone.
resource | $file | Backup file to be downloaded. |
boolean | $testFull | Return true if the file exists. |
Error message.
Return the backup file.
clone_backup_delete_files(array $plugins, array $themes) : array
Method clone_backup_delete_files()
Delete unneeded files (plugins and themes).
array | $plugins | Array containig plugins to be kept. |
array | $themes | Array containig themes to be kept. |
Array containing output feedback.