Merged in feature/from-pantheon (pull request #16)

code from pantheon

* code from pantheon
This commit is contained in:
Tony Volpe
2024-01-10 17:03:02 +00:00
parent 054b4fffc9
commit 4eb982d7a8
16492 changed files with 3475854 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?php
/**
* Contains Nginx_Helper_Deactivator class.
*
* @package nginx-helper
*/
/**
* Fired during plugin deactivation.
*
* This class defines all code necessary to run during the plugin's deactivation.
*
* @since 2.0.0
* @link https://rtcamp.com/nginx-helper/
*
* @package nginx-helper
* @subpackage nginx-helper/includes
*
* @author rtCamp
*/
class Nginx_Helper_Deactivator {
/**
* Schedule event to check log file size daily. Remove nginx helper capability.
*
* @since 2.0.0
*/
public static function deactivate() {
wp_clear_scheduled_hook( 'rt_wp_nginx_helper_check_log_file_size_daily' );
$role = get_role( 'administrator' );
$role->remove_cap( 'Nginx Helper | Config' );
$role->remove_cap( 'Nginx Helper | Purge cache' );
}
}