[wp-trac] [WordPress Trac] #32790: Filter for do_shortcode_tag()

WordPress Trac noreply at wordpress.org
Thu Jun 25 18:26:23 UTC 2015


#32790: Filter for do_shortcode_tag()
-----------------------------+----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Shortcodes       |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+----------------------------
 As a WordPress developer with a [https://github.com/fusioneng/shortcake-
 bakery collection of shortcodes], I want to include some standard
 JavaScript every time a shortcode in my collection is run.

 In [https://github.com/fusioneng/shortcake-bakery/pull/31 this pull
 request], I had to create a standard callback for all shortcodes in order
 to run `wp_enqueue_script()`. If I could filter the return value for
 `do_shortcode_tag()`, I could still enqueue my scripts, as well as modify
 the output of the shortcode.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32790>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list