Can I create customizer setting that can handle plugin shortcode?

Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development?

If it’s possible what is the best way to sanitize the shortcode data from my customizer setting?

1 Answer
1

It’s probably best to render the shortcode on output by running it through do_shortcode()

Leave a Comment