文件操作 - ionos-assistant.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-assistant/ionos-assistant.php
编辑文件内容
<?php // phpcs:disable PSR1.Files.SideEffects.FoundWithSymbols /** * Plugin Name: Assistant * Description: Assistant will help you complete the first setup of your WordPress in quick and easy steps. It will help you find a theme to start with and add some plugins that will help you with the purpose of your WordPress installation. * Version: 9.1.2 * License: GPL-2.0-or-later * Author: IONOS Group * Author URI: https://www.ionos-group.com/brands.html * Update URI: ionos-assistant * Text Domain: ionos-assistant * Domain Path: /languages * Requires PHP: 7.1 * * @package Ionos\Assistant */ /* Copyright 2024 IONOS Group This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. Online: http://www.gnu.org/licenses/gpl.txt */ namespace Ionos\Assistant; if ( ! defined( 'ABSPATH' ) ) { exit; } use Ionos\Libraryassistant\Options; use Ionos\Libraryassistant\Config; use Ionos\Libraryassistant\Warning; use Ionos\Libraryassistant\Updater; use Ionos\Assistant\SwitchPage; define( 'IONOS_ASSISTANT_FILE', __FILE__ ); define( 'IONOS_ASSISTANT_DIR', __DIR__ ); define( 'IONOS_ASSISTANT_BASE', plugin_basename( __FILE__ ) ); define( 'IONOS_ASSISTANT_URL', \plugin_dir_url( __FILE__ ) ); // Change the source of the config to get the right version for v8. add_filter( 'ionos_library_service_url_before_placeholder_replacement', function ( $url, $service, $tenant, $plugin ) { if ( 'config' !== $service || 'assistant' !== $plugin ) { return $url; } $url = str_replace( 'config.json', 'config-v8.json', $url ); return $url; }, 10, 4 ); add_filter( 'ionos_library_main_plugin_file_path', function ( $path, $plugin_name ) { if ( 'assistant' === $plugin_name ) { return IONOS_ASSISTANT_FILE; } return $path; }, 10, 2 ); $ionos_assistant_autoloader = __DIR__ . '/vendor/autoload.php'; if ( is_readable( $ionos_assistant_autoloader ) ) { require_once $ionos_assistant_autoloader; } require_once __DIR__ . '/inc/add-switch-page.php'; Options::set_plugin_name( 'assistant' ); Options::clean_up( IONOS_ASSISTANT_FILE ); /** * Init plugin. * * @return void */ function init() { new Updater(); new Warning( 'ionos-assistant' ); add_action( 'admin_init', function () { if ( false === Config::get( 'features.wizard' ) ) { delete_transient( 'ionos_assistant_config' ); } } ); } add_action( 'plugins_loaded', __NAMESPACE__ . '\init' ); /** * Plugin translation. * * @return void */ function load_textdomain() { load_plugin_textdomain( 'ionos-assistant', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action( 'init', __NAMESPACE__ . '\load_textdomain' );
修改文件时间
将文件时间修改为当前时间的前一年
删除文件