Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created May 8, 2017 20:19
Show Gist options
  • Save lukecav/e28f48d2d0bbc6672527c7d1d069e8e5 to your computer and use it in GitHub Desktop.
Save lukecav/e28f48d2d0bbc6672527c7d1d069e8e5 to your computer and use it in GitHub Desktop.
Remove Additional CSS from the WordPress (4.7) Customizer
add_action( 'customize_register', 'prefix_remove_css_section', 15 );
/**
* Remove the additional CSS section, introduced in 4.7, from the Customizer.
* @param $wp_customize WP_Customize_Manager
*/
function prefix_remove_css_section( $wp_customize ) {
$wp_customize->remove_section( 'custom_css' );
}
@lukecav
Copy link
Author

lukecav commented Dec 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment