deleted_theme

deleted_theme

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('deleted_theme') is found 1 times:

  • /wp-admin/includes/theme.php line 98
    	 *
    	 * @param string $stylesheet Stylesheet of the theme to delete.
    	 * @param bool   $deleted    Whether the theme deletion was successful.
    	 */
    	do_action( 'deleted_theme', $stylesheet, $deleted );
    
    	if ( ! $deleted ) {
    		return new WP_Error(
    			'could_not_remove_theme',
    			/* translators: %s: Theme name. */
    			sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet )
    

See this hook used in plugins: