resume_theme


resume_theme ( $theme, $redirect = '' )

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

Description

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

Related Functions

preview_theme, remove_theme_mod, remove_theme_mods, get_theme, delete_theme

Top Google Results

User discussions

wpseek mobile