WordPress at Your Fingertips
action is not described

deleted_theme action-hook . WP 5.8.0

Fires immediately after a theme deletion attempt.

Usage

add_action( 'deleted_theme', 'action_function_name_5372', 10, 2 );
function action_function_name_5372( $stylesheet, $deleted ){
	// action...
}
$stylesheet(string)
Stylesheet of the theme to delete.
$deleted(true|false)
Whether the theme deletion was successful.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

delete_theme()
deleted_theme
wp-admin/includes/theme.php 96
do_action( 'deleted_theme', $stylesheet, $deleted );

Where in WP core the hook is used WordPress

Usage not found.