wphooks.info - deleted_plugin

deleted_plugin

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-admin/includes/plugin.php:
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
		}

		/**
		 * Fires immediately after a plugin deletion attempt.
		 *
		 * @since 4.4.0
		 *
		 * @param string $plugin_file Plugin file name.
		 * @param bool   $deleted     Whether the plugin deletion was successful.
		 */
		do_action( 'deleted_plugin', $plugin_file, $deleted );

		if ( ! $deleted ) {
			$errors[] = $plugin_file;
			continue;
		}

		// Remove language files, silently.
		$plugin_slug = dirname( $plugin_file );
		if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) {