$wp_customize->remove_section issue

Hi,

I want to hide the slider option in the customizer, but having some troubles doing so:

I tried the following:

function customize_register_init( $wp_customize ){
	$wp_customize->remove_section('sparkling_slider_options');
}
add_action( 'customize_register', 'customize_register_init' );

The above method works to remove section_tagline, or other sections, but will not working for the sparkling_slider_options.

If any one has any advice on this, or a fix I would greatly appreciate it.

Thank you

Hi @jpopuk,

I hope you are well today and thank you for your question.

Just change priority argument in your shared code as following.

function customize_register_init( $wp_customize ){
	$wp_customize->remove_section('sparkling_slider_options');
}
add_action( 'customize_register', 'customize_register_init', 99 );

Best Regards,
Movin

Brill… thank you :slight_smile:

You are most welcome here :slight_smile: