deleted_plugin

deleted_plugin

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('deleted_plugin') is found 1 times:

  • /wp-admin/includes/plugin.php line 1004
    		 *
    		 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    		 * @param bool   $deleted     Whether the plugin deletion was successful.
    		 */
    		do_action( 'deleted_plugin', $plugin_file, $deleted );
    
    		if ( ! $deleted ) {
    			$errors[] = $plugin_file;
    			continue;
    		}
    
    

See this hook used in plugins: