[wp-trac] [WordPress Trac] #63904: Add action hook when terms counts are updated
WordPress Trac
noreply at wordpress.org
Mon Sep 1 12:17:53 UTC 2025
#63904: Add action hook when terms counts are updated
------------------------------+-----------------------------
Reporter: LeonidasMilossis | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.9
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
------------------------------+-----------------------------
Comment (by LeonidasMilossis):
I think you're right in that it should be at least that deep into the
flow, but I went with adding it in an even deeper level, in
`_update_post_term_count()` and in `_update_generic_term_count()`, because
this ensures it will only run when it should, but also that it will
definitely run then.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63904#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list