A WordPress-centric search engine for devs and theme authors



resume_theme ›

Since5.1.0
Deprecatedn/a
resume_theme ( $theme )
Parameters:
  • (string) $theme Single theme to resume.
    Required: Yes
Returns:
  • (bool|WP_Error) True on success, false if `$theme` was not paused, `WP_Error` on failure.
Defined at:
Codex:

Tries to resume a single theme.



Source

function resume_theme( $theme ) {
	$result = wp_forget_extension_error( 'themes', $theme );

	if ( ! $result ) {
		return new WP_Error(
			'could_not_resume_theme',
			__( 'Could not resume the theme.' )
		);
	}

	return true;
}