do_action( ‘pre_uninstall_plugin’, string $plugin, array $uninstallable_plugins )

In this article

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

Parameters

$pluginstring
Path to the plugin file relative to the plugins directory.
$uninstallable_pluginsarray
Uninstallable plugins.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.