Last active
March 20, 2019 14:14
-
-
Save deeman/feba8d75c16ec102e3d4604e0733beea to your computer and use it in GitHub Desktop.
Remove Additional CSS Tab from WordPress Customizer
This file contains hidden or 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
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php | |
| /** | |
| * Remove the additional CSS section, introduced in 4.7, from the Customizer. | |
| * @param $wp_customize WP_Customize_Manager | |
| */ | |
| add_action( 'customize_register', 'prefix_remove_css_section', 15 ); | |
| 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