Home › Forums › ACF PRO › Shortcodes in Textarea? › Reply To: Shortcodes in Textarea?
Not really… an least not easily, do_shortcode is indiscriminate. If it’s a registered shortcode WP will run it.
It could be done with some work. You’d need to first build your own shortcode function/filter and use this instead of the WP hook. Look at the core function do_shortcode(). You’d pretty much need to do everything that function does, and possibly some of what the called functions do, yourself and build a “White List” to check shortcodes against to see if they should be run or not.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.