文件操作 - Processor.php
返回文件管理
返回主菜单
删除本文件
文件: /root/Desktop/OLD/plugin-wordpress/advanced-cron-manager/inc/Server/Processor.php
编辑文件内容
<?php /** * Processor class * Blocks WP Cron execution * * @package advanced-cron-manager */ namespace underDEV\AdvancedCronManager\Server; /** * Processor class. */ class Processor { /** * Settings class * * @var object */ public $settings; /** * Constructor * * @param Settings $settings Settings class. */ public function __construct( Settings $settings ) { $this->settings = $settings; } /** * Blocks WP Cron default spawning on init action * * @return void */ public function block_cron_executions() { $settings = $this->settings->get_settings(); if ( isset( $settings['server_enable'] ) && ! empty( $settings['server_enable'] ) ) { if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); } // Just in case the constant is already set to true. remove_action( 'init', 'wp_cron' ); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件