wp_schedule_update_user_counts()
Schedules a recurring recalculation of the total count of users.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_schedule_update_user_counts();
Changelog
Since 6.0.0 | Introduced. |
wp_schedule_update_user_counts() wp schedule update user counts code WP 6.6.2
function wp_schedule_update_user_counts() { if ( ! is_main_site() ) { return; } if ( ! wp_next_scheduled( 'wp_update_user_counts' ) && ! wp_installing() ) { wp_schedule_event( time(), 'twicedaily', 'wp_update_user_counts' ); } }