编辑:uninstall.php
<?php /** * Fired when the plugin is uninstalled. * * When populating this file, consider the following flow * of control: * * - This method should be static * - Check if the $_REQUEST content actually is the plugin name * - Run an admin referrer check to make sure it goes through authentication * - Verify the output of $_GET makes sense * - Repeat with other user roles. Best directly by using the links/query string parameters. * - Repeat things for multisite. Once for a single site in the network, once sitewide. * * This file may be updated more in future version of the Boilerplate; however, this is the * general skeleton and outline for how the file should work. * * For more information, see the following discussion: * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913 * * @link http://example.com * @since 1.0.0 * * @package Plugin_Name */ // If uninstall not called from WordPress, then exit. if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } class Alti_ProtectUploads_Uninstall { public static function run() { $plugin_name = 'protect-uploads'; if( is_admin()) delete_option( $plugin_name . '-protection' ); } } Alti_ProtectUploads_Uninstall::run();
保存文件
位置:
home
/
robertofarias
/
public_html
/
wp-content
/
plugins
/
tgiwhnx
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
admin
drwxr-xr-x
-
2026-04-16 07:22
权限
删除
重命名
includes
drwxr-xr-x
-
2026-04-16 07:22
权限
删除
重命名
languages
drwxr-xr-x
-
2026-04-16 07:22
权限
删除
重命名
LICENSE.txt
-rw-r--r--
18 KB
2026-04-16 07:22
编辑
下载
权限
删除
重命名
protect-uploads.php
-rw-r--r--
1.51 KB
2026-04-16 07:22
编辑
下载
权限
删除
重命名
readme.txt
-rw-r--r--
2.44 KB
2026-04-16 07:22
编辑
下载
权限
删除
重命名
uninstall.php
-rw-r--r--
1.27 KB
2026-04-16 07:22
编辑
下载
权限
删除
重命名