pre_count_users

pre_count_users

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('pre_count_users') is found 1 times:

  • /wp-includes/user.php line 1245
    	 * @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 );