get_user_count
The number of active users in your installation.
Description
(int) get_user_count();
The count is cached and updated twice daily. This is not a live count.
Returns (int)
Usage
if ( !function_exists( 'get_user_count' ) ) { require_once ABSPATH . WPINC . '/ms-functions.php'; } // NOTICE! Understand what this does before running. $result = get_user_count();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/ms-functions.php
- function get_user_count() {
- return get_site_option( 'user_count' );
- }