文件操作 - Provider.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Common/Site_Health/Provider.php
编辑文件内容
<?php namespace TEC\Common\Site_Health; use TEC\Common\Contracts\Service_Provider; /** * Class Provider * * @since 5.1.0 * * @package TEC\Common\Site_Health * */ class Provider extends Service_Provider { /** * Register the functionality related to this module. * * @since 5.1.0 * * @return void */ public function register() { $this->add_filters(); } /** * Include the filters related to this module. * * @since 5.1.0 * * @return void */ protected function add_filters(): void { add_filter( 'debug_information', [ $this, 'filter_include_info_section' ] ); } /** * Includes the info sections controlled by Common. * * @since 5.1.0 * * @param array $info Current set of info sections. * * @return array */ public function filter_include_info_section( $info ): array { return $this->container->make( Factory::class )->filter_include_info_sections( (array) $info ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件