Skip to content

Instantly share code, notes, and snippets.

@deeman
Last active May 28, 2019 09:29
Show Gist options
  • Select an option

  • Save deeman/ad3e8eb5e68c9da9cbc4aa9c9cff2da8 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/ad3e8eb5e68c9da9cbc4aa9c9cff2da8 to your computer and use it in GitHub Desktop.
WordPress - Remove additional CSS from the Customizer
//HIDE ADDITIONAL CSS IN CUSTOMIZER//
add_action( 'customize_register', 'prefix_remove_css_section', 15 );
/**
* Remove the additional CSS section, from the Customizer.
*/
function prefix_remove_css_section( $wp_customize ) {
$wp_customize->remove_section( 'custom_css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment