A WordPress-centric search engine for devs and theme authors



pre_uninstall_plugin ›

Since4.5.0
Deprecatedn/a
do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins )
Parameters: (2)
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
  • (array) $uninstallable_plugins Uninstallable plugins.
    Required: Yes
Defined at:
Codex:

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





Source

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