[wp-trac] [WordPress Trac] #40696: no chance to control wp_count_terms ()
WordPress Trac
noreply at wordpress.org
Mon May 8 22:15:58 UTC 2017
#40696: no chance to control wp_count_terms ()
-----------------------------+-----------------------------
Reporter: krizkroz | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Hey!
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,
Christian
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40696>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list