[wp-trac] [WordPress Trac] #55894: Where is the "wp_update_user_counts" action defined?

WordPress Trac noreply at wordpress.org
Fri Jun 3 06:26:51 UTC 2022


#55894: Where is the "wp_update_user_counts" action defined?
--------------------------+------------------------------
 Reporter:  tmatsuur      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tmatsuur):

 Thanks @SergeyBiryukov

 I was inadvertent.

 The "wp_update_user_counts" specified in the wp_schedule_event function
 was the action name, not the function name.

 Then the wp_schedule_update_user_counts function will call itself once
 every two days.

 I don't think the wp_update_user_counts function is called, how is the
 number of users recalculated?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55894#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list