delete_theme
Fires immediately before a theme deletion attempt.
Usage
add_action( 'delete_theme', 'wp_kama_delete_theme_action' ); /** * Function for `delete_theme` action-hook. * * @param string $stylesheet Stylesheet of the theme to delete. * * @return void */ function wp_kama_delete_theme_action( $stylesheet ){ // action... }
- $stylesheet(string)
- Stylesheet of the theme to delete.
Changelog
Since 5.8.0 | Introduced. |
Where the hook is called
delete_theme
wp-admin/includes/theme.php 82
do_action( 'delete_theme', $stylesheet );