[wp-trac] [WordPress Trac] #41853: Filter to handle/override the list of IDs in the Gallery Shortcode

WordPress Trac noreply at wordpress.org
Mon Sep 11 09:01:55 UTC 2017


#41853: Filter to handle/override the list of IDs in the Gallery Shortcode
-----------------------------+------------------------------
 Reporter:  TigrouMeow       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Gallery          |     Version:  4.8.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  ui
-----------------------------+------------------------------

Comment (by birgire):

 Thanks for your suggestion, but what about the
 {{{shortcode_atts_gallery}}} filter available since version 3.6?

 Example:

 {{{
 add_filter('shortcode_atts_gallery', function( $out, $pairs, $atts ) {
     // ...
     return $out;
 }, 10, 3 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41853#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list