Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: deleted_plugin

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
977
978           /**
979            * Fires immediately after a plugin deletion attempt.
980            *
981            * @since 4.4.0
982            *
983            * @param string $plugin_file Path to the plugin file relative to the plugins directory.
984            * @param bool   $deleted     Whether the plugin deletion was successful.
985            */
986           do_action( 'deleted_plugin', $plugin_file, $deleted );
987
988           if ( ! $deleted ) {
989                $errors[] = $plugin_file;
990                continue;
991           }
992
993           $plugin_slug = dirname( $plugin_file );
994
995           if ( 'hello.php' === $plugin_file ) {