pre_count_users

pre_count_users

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_count_users') is found 1 times:

  • /wp-includes/user.php line 1278
    	 * @param string     $strategy Optional. The computational strategy to use when counting the users.
    	 *                             Accepts either 'time' or 'memory'. Default 'time'.
    	 * @param int        $site_id  The site ID to count users for.
    	 */
    	$pre = apply_filters( 'pre_count_users', null, $strategy, $site_id );
    
    	if ( null !== $pre ) {
    		return $pre;
    	}
    
    	$blog_prefix = $wpdb->get_blog_prefix( $site_id );