id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 25435,Introduce alternative to do_shortcode( '[shortcode]' ),jdgrimes,rmccue,"There are times when we want to call a shortcode programmatically. Currently, the easiest way to do this is `do_shortcode( '[shortcode]' )`. But that does lots of unnecessary work. A developer has two alternatives: 1. Manually search through the source and find the function that handles the shortcode, and call it directly. The only problem is that this doesn't offer a very forward-compatible solution, especially when the shortcode is being offered by a plugin. 1. Search through `$shortcode_tags` to find and call the function. That's more forward-compatible, but it kind of seems hacky. I'd like to request that we offer a core function that does number 2 rather than each developer having to implement it themselves. Example: {{{ call_shortcode_func( 'shortcode', $atts, $content ); }}} (We can change the name of the function.) Patch forthcoming.",feature request,assigned,normal,Future Release,Shortcodes,,normal,,has-patch has-unit-tests needs-refresh,,