Supporting shortcode text within button

Is there a way to support adding text generated from a shortcode in a button element? For example, I have a plugin that puts the phone number on the website wherever I have a shortcode, making it easy to update the phone number once everywhere. However, when I try to do this with button text, it doesn’t actually render.

Hi Drew,

Thanks for reaching out.

That’s not currently possible, and adding generated HTML within button could break it. Not all elements are allowed within <a></a> block as HTML standard.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.