文件操作 - ionos-loop.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-loop/ionos-loop.php
编辑文件内容
<?php // phpcs:disable PSR1.Files.SideEffects.FoundWithSymbols /** * Plugin Name: Loop * Description: Loop is a service that helps us to improve our products and services. It allows us to involve you in our product development by doing surveys and collecting anonymous statistical data about your WordPress installation. We use this data to improve our products and services. * Version: 2.1.7 * License: GPL-2.0-or-later * Author: IONOS Group * Author URI: https://www.ionos-group.com/brands.html * Update URI: ionos-loop * Text Domain: ionos-loop * Domain Path: /languages * * @package Ionos\Loop */ /* 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\Loop; use Ionos\Libraryloop\Options; if ( ! defined( 'IONOS_LOOP_PATH' ) ) { define( 'IONOS_LOOP_PATH', \plugin_dir_path( __FILE__ ) ); } if ( ! defined( 'IONOS_LOOP_URL' ) ) { define( 'IONOS_LOOP_URL', \plugin_dir_url( __FILE__ ) ); } require_once __DIR__ . '/vendor/autoload.php'; if ( ! defined( 'ABSPATH' ) ) { exit( 1 ); } /** * The file path of the main plugin file. * * @var string */ const PLUGIN_FILE = __FILE__; /** * Set required options for library usage */ Options::set_plugin_name( 'loop' ); Options::get_main_plugin_file_path( PLUGIN_FILE ); /** * Inits the main plugin class. */ add_action( 'init', [ Plugin::class, 'init' ], 99 ); /** * Add consent action on activation. */ function ionos_add_consent_action() { add_action( 'ionos_loop_consent_given', [ Plugin::class, 'register_at_data_collector' ] ); } register_activation_hook( __FILE__, '\Ionos\Loop\ionos_add_consent_action' ); register_deactivation_hook( __FILE__, [ Plugin::class, 'revoke_consent' ] );
修改文件时间
将文件时间修改为当前时间的前一年
删除文件