delete_theme WordPress Action Hook
The delete_theme WordPress hook is triggered when a theme is deleted. It allows you to run a specific function when a theme is deleted. This hook is useful for cleanup tasks such as deleting options or settings associated with the theme.
do_action( 'delete_theme', string $stylesheet ) #
Fires immediately before a theme deletion attempt.
Parameters
- $stylesheet
(string)Stylesheet of the theme to delete.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |