pre_uninstall_plugin хук-событие . WP 4.5.0
Fires in uninstall_plugin() immediately before the plugin is uninstalled.
Использование
add_action( 'pre_uninstall_plugin', 'action_function_name_9032', 10, 2 ); function action_function_name_9032( $plugin, $uninstallable_plugins ){ // action... }
- $plugin(строка)
- Path to the plugin file relative to the plugins directory.
- $uninstallable_plugins(массив)
- Uninstallable plugins.
Список изменений
С версии 4.5.0 | Введена. |
Где вызывается хук
pre_uninstall_plugin
wp-admin/includes/plugin.php 1249
do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins );