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

File: wp-admin/includes/theme.php

View on Trac

Changelog

Version Description
5.8.0 Introduced.

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