delete_theme

delete_theme

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('delete_theme') is found 1 times:

  • /wp-admin/includes/theme.php line 82
    	 * @since 5.8.0
    	 *
    	 * @param string $stylesheet Stylesheet of the theme to delete.
    	 */
    	do_action( 'delete_theme', $stylesheet );
    
    	$theme = wp_get_theme( $stylesheet );
    
    	$themes_dir = trailingslashit( $themes_dir );
    	$theme_dir  = trailingslashit( $themes_dir . $stylesheet );
    	$deleted    = $wp_filesystem->delete( $theme_dir, true );