delete_plugin хук-событие . WP 4.4.0
Fires immediately before a plugin deletion attempt.
Использование
add_action( 'delete_plugin', 'action_function_name_3244' ); function action_function_name_3244( $plugin_file ){ // action... }
- $plugin_file(строка)
- Path to the plugin file relative to the plugins directory.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
delete_plugin
wp-admin/includes/plugin.php 977
do_action( 'delete_plugin', $plugin_file );