Created
May 8, 2017 20:19
-
-
Save lukecav/e28f48d2d0bbc6672527c7d1d069e8e5 to your computer and use it in GitHub Desktop.
Remove Additional CSS from the WordPress (4.7) 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
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
https://robincornett.com/additional-css-wordpress-customizer/