forked from amimoto-ami/c3-cloudfront-clear-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.php
More file actions
29 lines (26 loc) · 652 Bytes
/
Copy pathuninstall.php
File metadata and controls
29 lines (26 loc) · 652 Bytes
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
<?php
/**
* Run script to remove the plugin options
*
* @author hideokamoto <hide.okamoto@digitalcube.jp>
* @since 6.1.1
* @package C3_CloudFront_Cache_Controller
*/
/**
* Load classes
*/
require_once( __DIR__ . '/loader.php' );
use C3_CloudFront_Cache_Controller\WP;
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
/**
* Remove avoid cache cookie
*/
$C3_CloudFront_Cache_Controller_fixtures = new WP\Fixtures();
$C3_CloudFront_Cache_Controller_fixtures->unset_avoid_cache_cookie();
/**
* Remove plugin options
*/
$C3_CloudFront_Cache_Controller_options = new WP\Options();
$C3_CloudFront_Cache_Controller_options->delete_options();