文件操作 - class-settings-logs.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/includes/admin/tools/class-settings-logs.php
编辑文件内容
<?php /** * Give Settings Page/Tab * * @package Give * @subpackage Classes/Give_Settings_Logs * @copyright Copyright (c) 2016, GiveWP * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.8 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if ( ! class_exists( 'Give_Settings_Logs' ) ) : /** * Give_Settings_Logs. * * @sine 1.8 */ class Give_Settings_Logs extends Give_Settings_Page { /** * Flag to check if enable saving option for setting page or not * * @since 1.8.17 * @var bool */ protected $enable_save = false; /** * Constructor. */ public function __construct() { $this->id = 'logs'; $this->label = __( 'Logs', 'give' ); parent::__construct(); // Do not use main form for this tab. if ( give_get_current_setting_tab() === $this->id ) { add_action( 'give-tools_open_form', '__return_empty_string' ); add_action( 'give-tools_close_form', '__return_empty_string' ); } } /** * Logs list table app container * * @since 2.10.0 */ public function output() { echo '<div id="give-logs-list-table-app" style="padding-top: 20px;"></div>'; } } endif; return new Give_Settings_Logs();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件