You probably don’t need do_shortcode()

Categorized under:

Photo of author
Written By Brian Krogsgard

1 thought on “You probably don’t need do_shortcode()”

  1. Thanks for sharing this Brian!

    I am a little weary of using these cross-project, as theoretically a developer could change the name of their callback.

    True, but if you’re not sure about the callback function, you can always get find it by its shortcode tag in the $shortcode_tags global and invoke it with call_user_func.

Comments are closed.

A2 Hosting
Omnisend
WordPress.com