You’ll want to look over the documentation for the Customizer API (http://codex.ww.wp.xz.cn/Theme_Customization_API), but as I recall there is an undocumented remove_section method:
$wp_customize->remove_section('static_front_page');
Thread Starter
GradyD
(@adroidman)
I read the codex and also googled around for that method but for some reason it does not want to work. I think this is because I am not running a custom customizer. Thanks
That line of code on it’s own will not do anything, it has be used in the proper context – specifically via the customize_register action:
add_action( 'customize_register', 'gowp_customize_register', 999 );
function gowp_customize_register( $wp_customize ) {
$wp_customize->remove_section( $section );
}
Thread Starter
GradyD
(@adroidman)
Awww snap! That did it. Thank you!