resume_theme

SummerySummery

Tries to resume a single theme.

Syntax

resume_theme( string $theme, string $redirect = '' )

DescriptionDescription

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.

ParametersParameters

$theme

(string) (Required) Single theme to resume.

$redirect

(string) (Optional) URL to redirect to.

Default value: ''

ReturnReturn

(bool|WP_Error) True on success, false if $theme was not paused, WP_Error on failure.

SourceSource

File: wp-admin/includes/theme.php


			

ChangelogChangelog

Changelog
Version Description
5.2.0 Introduced.
Scroll to Top