Make WordPress Core

Opened 3 years ago

#40696 new feature request

no chance to control wp_count_terms ()

Reported by: krizkroz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: Taxonomy Keywords:
Focuses: Cc:
PR Number:



I'm wondering if i have no chance to filter the resulting number of wp_count_terms ().
Theres no filter available there.

wp_count_terms () calls get_terms () but it returns the result of $term_query before ("Count queries are not filtered, for legacy reasons.") the "get_terms" filter is appliable. So i see no chance to control result of wp_count_terms () without (heavy) diggin in to WP_Term_Query().

Is there a chance for a filter before the function returns in this case?

thank you a lot,

Change History (0)

Note: See TracTickets for help on using tickets.