Skip to content

Commit

Permalink
Remove global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Jan 27, 2022
1 parent c3bac11 commit 32669e0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/functions/enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,24 @@ function mai_deregister_asset( $handle ) {
$wp_styles->remove( $handle );
}

add_action( 'wp_enqueue_scripts', 'mai_remove_global_styles_css' );
add_action( 'admin_enqueue_scripts', 'mai_remove_global_styles_css', 9 );
/**
* Remove global styles CSS.
*
* @since TBD
*
* @return void
*/
function mai_remove_global_styles_css() {
mai_deregister_asset( 'global-styles' );
}


add_action( 'wp_enqueue_scripts', 'mai_remove_block_library_theme_css' );
add_action( 'admin_enqueue_scripts', 'mai_remove_block_library_theme_css', 9 );
/**
* Remove block library theme CSS from admin.
* Remove block library theme CSS.
*
* @since 2.4.0
*
Expand Down

0 comments on commit 32669e0

Please sign in to comment.