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

WordPress Trac noreply at wordpress.org
Thu Jun 2 07:21:08 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        |   Keywords:
  Focuses:                |
 Checking when the number of users is updated, we found the following

 /wp-includes/default-filters.php : 108

 add_action( 'wp_update_user_counts', 'wp_schedule_update_user_counts', 10,
 0 );

 The "wp_update_user_counts" function never calls the do_action function,
 and I do not know where the above callback function is called.

 It is possible that some of the action names are defined using variables,
 but I could not find any description of this as far as I searched the
 source code.

 I think you forgot to include the do_action function in the
 wp_update_user_counts function.

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

More information about the wp-trac mailing list