[wp-trac] [WordPress Trac] #55606: Add wp_after_tag_search filter

WordPress Trac noreply at wordpress.org
Mon Jul 25 20:50:49 UTC 2022


#55606: Add wp_after_tag_search filter
-------------------------------------------------+-------------------------
 Reporter:  grandeljay                           |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  Taxonomy                             |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:
  testing needs-testing-info                     |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 PR tested using the following snippet:

 {{{
 function append_kokomo_tags( $results, $tax, $s ) {
         $kokomo = array( 'aruba', 'bermuda', 'key largo', 'montego' );

         $results = array_merge( $results, $kokomo );

         return $results;
 }
 add_filter( 'wp_after_tag_search', 'append_kokomo_tags', 10, 3 );
 }}}

 Works fine.

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


More information about the wp-trac mailing list