-
-
Save danielmcclure/361648bded730e182d64023b134bb94d to your computer and use it in GitHub Desktop.
Remove The Additional CSS Section from Customizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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