W3cubDocs

/WordPress

do_action( ‘deleted_theme’, string $stylesheet, bool $deleted )

Fires immediately after a theme deletion attempt.

Parameters

$stylesheetstring
Stylesheet of the theme to delete.
$deletedbool
Whether the theme deletion was successful.

Source

do_action( 'deleted_theme', $stylesheet, $deleted );

Changelog

Version Description
5.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/deleted_theme