resume_plugin


resume_plugin ( $plugin, $redirect = '' )

Parameters:
  • (string) plugin Single plugin to resume.
  • (string) redirect Optional. URL to redirect to. Default empty string.
Returns:
  • (true|WP_Error) True on success, false if `$plugin` was not paused, `WP_Error` on failure.
Defined at:

Description

Tries to resume a single plugin.If a redirect was provided, we first ensure the plugin does not throw fatal errors anymore. The way it works is by setting the redirection to the error before trying to include the plugin file. If the plugin fails, then the redirection will not be overwritten with the success message and the plugin will not be resumed.

Related Functions

delete_plugins, get_plugins, get_mu_plugins, wp_update_plugin, wp_update_plugins

Top Google Results

User discussions

wpseek mobile