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

J.D. Grimes jdg at codesymphony.co
Tue Nov 12 13:28:32 UTC 2013


Yeah, I thought it would reduce bootstrap. Using do_shortcode() is so easy for new devs to do, if we want them to use the better alternative, I think it would be adopted quicker in a wrapper like this. 

On Nov 11, 2013, at 10:02 PM, Ryan McCue <lists at rotorised.com> wrote:

> J.D. Grimes wrote:
>> Here is a function that does just that:
> 
> This seems like something we should bring in to core to avoid everyone
> using `do_shortcode` and running the full regex parser every time.
> 
> I see you proposed http://core.trac.wordpress.org/ticket/25435 but it
> got wontfix'd. Anyone else think we should reopen?
> 
> -- 
> Ryan McCue
> <http://ryanmccue.info/>
> _______________________________________________
> 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