Slide 25
Slide 25 text
add_filter( 'customize_control_active', 'control_filter', 10, 2 );
function control_filter( $active, $control ) {
if ( in_array(
$control->section,
array(
'wc_email_header',
'wc_email_body',
'wc_email_footer',
'wc_email_send'
)
)
) {
return true;
}
return false;
}