[wp-trac] [WordPress Trac] #55894: Where is the "wp_update_user_counts" action defined?
WordPress Trac
noreply at wordpress.org
Fri Jun 3 10:25:20 UTC 2022
#55894: Where is the "wp_update_user_counts" action defined?
--------------------------+----------------------
Reporter: tmatsuur | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Users | Version: 6.0
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by johnbillion):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
It's a bit convoluted but the counts are regenerated via the
`wp_update_network_counts()` function, which is attached to the twice-
daily `update_network_counts` cron event, which is registered on
`admin_init`.
https://github.com/WordPress/wordpress-
develop/blob/c59af567e55de40b6f2f0a85aef73aff3944cca9/src/wp-includes/ms-
functions.php#L2495-L2497
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55894#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list