wphooks.info - deleted_plugin

deleted_plugin

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/plugin.php:
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
		}

		/**
		 * 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 ] ) ) {