delete_theme


delete_theme ( $stylesheet, $redirect = '' )

Parameters:
  • (string) $stylesheet Stylesheet of the theme to delete.
  • (string) $redirect Redirect to page when complete.
Returns:
  • (bool|null|WP_Error) True on success, false if `$stylesheet` is empty, WP_Error on failure. Null if filesystem credentials are required to proceed.
Defined at:

Description

Remove a theme

Related Functions

delete_term_meta, delete_site_meta, delete_meta, wp_delete_term, get_theme

Top Google Results

User discussions

wpseek mobile