When I try to use a shortcode in any content area for WP's theme customizer, it doesn't compile it. If I wrap it in PHP, it doesn't show up.
I think it might be because I'm sanitizing the content, but I'm not sure what to do to make shortcodes not get sanitized/removed.
function contents_sanitize_text( $input ) {
return wp_kses_post( force_balance_tags( $input, array( 'strong' => array(), 'a' => array('href') ) ) );
}
For this example, I want to add the shortcode [mc4wp_form id="148"] to a textarea in my theme's customizer.