delete_theme

SummerySummery

Remove a theme

Syntax

delete_theme( string $stylesheet, string $redirect = '' )

ParametersParameters

$stylesheet

(string) (Required) Stylesheet of the theme to delete.

$redirect

(string) (Optional) Redirect to page when complete.

Default value: ''

ReturnReturn

(bool|null|WP_Error) True on success, false if $stylesheet is empty, WP_Error on failure. Null if filesystem credentials are required to proceed.

SourceSource

File: wp-admin/includes/theme.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top