delete_plugin, $plugin_file
delete_plugin, $plugin_file
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('delete_plugin, $plugin_file') is found 1 times:
- /wp-admin/includes/plugin.php line 980
* @since 4.4.0 * * @param string $plugin_file Path to the plugin file relative to the plugins directory. */ do_action( 'delete_plugin', $plugin_file ); $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) ); /* * If plugin is in its own directory, recursively delete the directory. * Base check on if plugin includes directory separator AND that it's not the root plugin folder.