delete_plugins


delete_plugins ( $plugins, $deprecated = '' )

Parameters:
  • (string[]) $plugins List of plugin paths to delete, relative to the plugins directory.
  • (string) $deprecated Not used.
Returns:
  • (bool|null|WP_Error) True on success, false if `$plugins` is empty, `WP_Error` on failure. `null` if filesystem credentials are required to proceed.
Defined at:

Description

Remove directory and files of a plugin for a list of plugins.

Related Functions

get_plugins, deactivate_plugins, delete_option, wp_ajax_delete_plugin, wp_delete_link

Top Google Results

User discussions

wpseek mobile