Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. //* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php
  3. /**
  4. * Remove the additional CSS section, introduced in 4.7, from the Customizer.
  5. * @param $wp_customize WP_Customize_Manager
  6. */
  7. add_action( 'customize_register', 'prefix_remove_css_section', 15 );
  8.  
  9. function prefix_remove_css_section( $wp_customize ) {
  10. $wp_customize->remove_section( 'custom_css' );
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement