WordPress开发者和主题制作者的搜索引擎



pre_uninstall_plugin ›

Since4.5.0
已弃用n/a
do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins )
参数: (2)
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
  • (array) $uninstallable_plugins Uninstallable plugins.
    Required: Yes
定义在:
文档:

Fires in uninstall_plugin() immediately before the plugin is uninstalled.





源码

do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins );