Core Function
View Source on Trac ↗ delete_theme()
delete_theme( mixed $stylesheet, mixed $redirect = '' ) Removes a theme.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $stylesheet string | Stylesheet of the theme to delete. Required |
| $redirect string | Redirect to page when complete. |
Return Value
((bool)
(bool | null | WP_Error) True on success, false if `$stylesheet` is empty, WP_Error on failure.
Null if filesystem credentials are required to proceed.
Function Information
Since Version
2.8.0
Source File
wp-admin/includes/theme.php
Advertisement