Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Forked from SiR-DanieL/functions.php
Last active December 17, 2016 17:57
Show Gist options
  • Save danielmcclure/361648bded730e182d64023b134bb94d to your computer and use it in GitHub Desktop.
Save danielmcclure/361648bded730e182d64023b134bb94d to your computer and use it in GitHub Desktop.
Remove The Additional CSS Section from Customizer
/**
* Remove the additional CSS section, introduced in 4.7, from the Customizer.
* @param $wp_customize WP_Customize_Manager
*/
function mycustomfunc_remove_css_section( $wp_customize ) {
$wp_customize->remove_section( 'custom_css' );
}
add_action( 'customize_register', 'mycustomfunc_remove_css_section', 15 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment