[wp-trac] [WordPress Trac] #25435: Intoduce function for use instead of do_shortcode( '[shortcode]' )
WordPress Trac
noreply at wordpress.org
Sat Sep 28 21:45:24 UTC 2013
#25435: Intoduce function for use instead of do_shortcode( '[shortcode]' )
-----------------------------+----------------------
Reporter: jdgrimes | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Shortcodes | Version:
Severity: normal | Resolution: invalid
Keywords: has-patch |
-----------------------------+----------------------
Changes (by DrewAPicture):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
You can just call the shortcode's callback function directly.
So for instance, the `[gallery]` shortcode callback is
`gallery_shortcode()`, and you can do:
{{{
echo gallery_shortcode( $attr );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25435#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list