[wp-trac] [WordPress Trac] #32919: Add post_type argument to get_tags function

WordPress Trac noreply at wordpress.org
Wed Jul 8 10:11:53 UTC 2015


#32919: Add post_type argument to get_tags function
-------------------------+------------------------------
 Reporter:  atomicjack   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:  4.2.2
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by swissspidy):

 This is currently possible using a filter, as per
 [http://wordpress.stackexchange.com/a/54536/12404 this answer on WPSE].

 Not sure if this something that should be included in core as I haven't
 seen many use cases for it. Usually CPTs have their own taxonomy and don't
 use tags.

 If it's suitable for core, then the change should probably be made in
 `get_terms`, not `get_tags`.

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


More information about the wp-trac mailing list