forked from deliciousbrains/wp-amazon-s3-and-cloudfront
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.php
43 lines (36 loc) · 911 Bytes
/
uninstall.php
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Uninstall WP Offload S3
*
* @package amazon-s3-and-cloudfront
* @subpackage uninstall
* @copyright Copyright (c) 2015, Delicious Brains
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 0.9
*/
// Exit if accessed directly
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
require dirname( __FILE__ ) . '/classes/wp-aws-uninstall.php';
$options = array(
'tantan_wordpress_s3',
'update_meta_with_region_session',
'update_file_sizes_session',
);
$postmeta = array(
'amazonS3_info',
'wpos3_filesize_total',
);
$crons = array(
'as3cf_cron_update_meta_with_region',
'as3cf_cron_update_file_sizes',
);
$transients = array(
'site' => array(
'as3cf_notices',
'wpos3_attachment_counts',
),
'subsite' => array( 'wpos3_site_space_used' ),
);
$as3cf_uninstall = new WP_AWS_Uninstall( $options, $postmeta, $crons, $transients );