Files
medicalalert-web-reloaded/wp/wp-content/plugins/nginx-helper/includes/class-nginx-helper-deactivator.php
Jay Sharma 07f9307d0c Merged in feature/165-dev-dev01 (pull request #12)
auto-patch  165-dev-dev01-2023-12-27T21_44_36

* auto-patch  165-dev-dev01-2023-12-27T21_44_36
2023-12-27 21:46:01 +00:00

39 lines
799 B
PHP

<?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' );
}
}