Skip to content

Instantly share code, notes, and snippets.

@wplit
Created January 26, 2022 22:40
Show Gist options
  • Save wplit/781263596bd61d7b914a49c82e7a4684 to your computer and use it in GitHub Desktop.
Save wplit/781263596bd61d7b914a49c82e7a4684 to your computer and use it in GitHub Desktop.
Remove 'global styles inline' from WP 5.9
add_action( 'wp_enqueue_scripts', 'lit_remove_global_inline_styles' );
function lit_remove_global_inline_styles() {
wp_dequeue_style('global-styles');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment