deleted_theme WordPress Action Hook
The deleted_theme WordPress hook is triggered when a theme is deleted. It allows you to perform an action when a theme is deleted. For example, you could use this hook to delete the theme's options from the database.
do_action( 'deleted_theme', string $stylesheet , bool $deleted ) #
Fires immediately after a theme deletion attempt.
Parameters
- $stylesheet
(string)Stylesheet of the theme to delete.
- $deleted
(bool)Whether the theme deletion was successful.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |