wp_customize – detect post type to show/hide customizer options
Customizer Controls can be displayed based on context. With active_callback API introduced in WordPres 4.0, you can control where to show your specific options. Add your customizer options like this with the optional active_callback argument. $wp_customize->add_control( ‘wc_cart_page_option’, array( ‘label’ => esc_html__( ‘Cart Page Options’ ), ‘section’ => ‘wc_cart’, ‘active_callback’ => ‘estore_is_cart’, )); Now create a … Read more