pre_count_users

pre_count_users

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_count_users') is found 1 times:

  • /wp-includes/user.php line 1278
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    * @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 );