✏️ 正在编辑: admin-notices-manager.php
路径:
/home/qyel0117/public_html/wp-content/plugins/admin-advice/admin-notices-manager.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Plugin Name: Admin Notices Manager * Plugin URI: https://melapress.com/wordpress-admin-notices/ * Description: Better manage admin notices & never miss an important WordPress and developer message. * Author: Melapress * Author URI: https://melapress.com/ * Version: 1.6.0 * Text Domain: admin-notices-manager * Domain Path: /languages * Requires at least: 5.0 * Requires PHP: 7.2 * License: GPL2 * * @package AdminNoticesManager */ if ( ! defined( 'ABSPATH' ) ) { exit; } /* Admin Notices Manager Copyright(c) 2025 Melapress (email : info@melapress.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ // Useful global constants. if ( ! defined( 'ADMIN_NOTICES_MANAGER_VERSION' ) ) { define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.6.0' ); define( 'ADMIN_NOTICES_MANAGER_URL', \plugin_dir_url( __FILE__ ) ); define( 'ADMIN_NOTICES_MANAGER_PATH', \plugin_dir_path( __FILE__ ) ); define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' ); define( 'ADMIN_NOTICES_BASENAME', \plugin_basename( __FILE__ ) ); } // Require Composer autoloader if it exists. if ( file_exists( ADMIN_NOTICES_MANAGER_PATH . '/vendor/autoload.php' ) ) { require_once ADMIN_NOTICES_MANAGER_PATH . 'vendor/autoload.php'; } // Include files. require_once ADMIN_NOTICES_MANAGER_INC . 'functions/core.php'; // Activation/Deactivation. \register_activation_hook( __FILE__, '\AdminNoticesManager\Core\activate' ); \register_deactivation_hook( __FILE__, '\AdminNoticesManager\Core\deactivate' ); // Bootstrap. AdminNoticesManager\Core\setup();
💾 保存文件
← 返回文件管理器