deleted_plugin

deleted_plugin

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('deleted_plugin') is found 1 times:

  • /wp-admin/includes/plugin.php line 1002
    0998
    0999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    *
     * @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: