[wp-trac] [WordPress Trac] #61152: Pass the full $args array to hook 'get_categories_taxonomy' and allow modification

WordPress Trac noreply at wordpress.org
Mon May 6 14:29:26 UTC 2024


#61152: Pass the full $args array to hook 'get_categories_taxonomy' and allow
modification
-------------------------+------------------------------
 Reporter:  beargfr      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:  6.5
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by beargfr):

 Replying to [comment:1 swissspidy]:
 > Hi there and welcome to Trac!
 >
 > This hook is used in `get_categories()`, which in turn uses
 `get_terms()`/`WP_Term_Query`. All term queries' arguments can be filtered
 using the [https://developer.wordpress.org/reference/hooks/get_terms_args/
 `get_terms_args`] filter. Does that filter cover your use case?

 Yes! That gave me what I needed.  Thanks.

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


More information about the wp-trac mailing list