Skip to content

Instantly share code, notes, and snippets.

@bewho
Forked from lukecav/functions.php
Created May 14, 2017 12:07
Show Gist options
  • Save bewho/1b088d696cba8a9743c135ae7171dcd9 to your computer and use it in GitHub Desktop.
Save bewho/1b088d696cba8a9743c135ae7171dcd9 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' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment