-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
28 lines (25 loc) · 1.27 KB
/
functions.php
File metadata and controls
28 lines (25 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* @throws \MultisiteContentCopier\Exceptions\DependencyNotFoundException
*/
function multisite_content_copier_copy_table() {
die( \MultisiteContentCopier\Controllers\ContentCopierController::copy_table() );
}
add_action( 'wp_ajax_multisite_content_copier_copy_table', 'multisite_content_copier_copy_table' );
add_action( 'wp_ajax_nopriv_multisite_content_copier_copy_table', 'multisite_content_copier_copy_table' );
/**
* @throws \MultisiteContentCopier\Exceptions\DependencyNotFoundException
*/
function multisite_content_copier_delete_files() {
die( \MultisiteContentCopier\Controllers\ContentCopierController::delete_uploads() );
}
add_action( 'wp_ajax_multisite_content_copier_delete_files', 'multisite_content_copier_delete_files' );
add_action( 'wp_ajax_nopriv_multisite_content_copier_delete_files', 'multisite_content_copier_delete_files' );
/**
* @throws \MultisiteContentCopier\Exceptions\DependencyNotFoundException
*/
function multisite_content_copier_copy_files() {
die( \MultisiteContentCopier\Controllers\ContentCopierController::copy_uploads() );
}
add_action( 'wp_ajax_multisite_content_copier_copy_files', 'multisite_content_copier_copy_files' );
add_action( 'wp_ajax_nopriv_multisite_content_copier_copy_files', 'multisite_content_copier_copy_files' );