WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently working on a theme that uses the Wordpress Customization API and I need to remove some pre-existing sections from the customization preview pane. Is there somewhere like a global variable holding an array of the sections perhaps (in true Wordpress style) I can unset the navigation section in particular?

Please see attached image for what I am talking about. I've circled it in red.

enter image description here

share|improve this question
up vote 1 down vote accepted

Just call remove_section method of the $wp_customize object:

add_action( 'customize_register', 'wpse8170_customize_register' );
function wpse8170_customize_register( WP_Customize_Manager $wp_customize ) {
    $wp_customize->remove_section( 'section-id-to-remove' );
share|improve this answer
Wow. I did not realise there was a remove_section method. I did some searching, but should have looked in the codebase. – DigitalSea Jan 31 '13 at 22:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.