deleted_plugin

动作钩子
do_action( 'deleted_plugin', $plugin_file, $deleted )
参数
  • (string) $plugin_file Path to the plugin file relative to the plugins directory.
    Required:
  • (bool) $deleted Whether the plugin deletion was successful.
    Required:
定义位置
相关勾子
delete_plugindeleted_linkdelete_linkdeleted_optiondeactivated_plugin
相关方法
delete_pluginswp_ajax_delete_plugindelete_optionget_pluginswp_delete_linkdeactivate_plugins
引入
4.4.0
弃用
-

deleted_plugin: 当一个插件从WordPress网站上被删除时,这个动作会被触发: 当一个插件被删除时,它通常被用来执行额外的操作。

在试图删除插件后立即启动。

do_action( 'deleted_plugin', $plugin_file, $deleted );

常见问题

FAQs
查看更多 >