[wp-hackers] Is there a way to get the callback function name out of a shortcode _programmatically_?

Paul Menard paul at codehooligans.com
Mon Nov 11 20:22:40 UTC 2013


There is a global array of the registered shortcode tags $shortcode_tags
not aware of a WP function to query this.


On Mon, Nov 11, 2013 at 3:12 PM, Haluk Karamete <halukkaramete at gmail.com>wrote:

> Is there a way to get the callback function name out of a shortcode
> _programmatically_?
>
> for example
>
> get_shortcode_callback_for('caption')
>
> would return
>
> "img_caption_shortcode"
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list