[wp-trac] [WordPress Trac] #40696: no chance to control wp_count_terms ()
WordPress Trac
noreply at wordpress.org
Fri Feb 14 12:26:31 UTC 2020
#40696: no chance to control wp_count_terms ()
--------------------------------------+-----------------------------
Reporter: krizkroz | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 4.7.4
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+-----------------------------
Comment (by ddu66):
Hello.
I don't understand some of your proposals regarding of initial request.
As I explain in ticket [https://core.trac.wordpress.org/ticket/49411
#49411] (duplicate), the need is to filter result exactly the same way
{{{wp_count_posts}}} (wp-includes/posts.php) does.
{{{wp_count_terms}}} function should then terminate with:
{{{
return apply_filters('wp_count_terms', get_terms($args), $taxonomy,
$args);
}}}
Thank you.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40696#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list