wp_is_large_user_count
Filter HookDescription
Filters whether the site is considered large, based on its number of users.Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1577 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$is_large_user_count
|
Whether the site has a large number of users. |
int
|
$count
|
The total number of users. |
int|null
|
$network_id
|
ID of the network. `null` represents the current network. |
Usage Examples
Basic Usage
<?php
// Hook into wp_is_large_user_count
add_filter('wp_is_large_user_count', 'my_custom_filter', 10, 3);
function my_custom_filter($is_large_user_count, $count, $network_id) {
// Your custom filtering logic here
return $is_large_user_count;
}
Source Code Context
wp-includes/user.php:1577
- How this hook is used in WordPress core
<?php
1572 *
1573 * @param bool $is_large_user_count Whether the site has a large number of users.
1574 * @param int $count The total number of users.
1575 * @param int|null $network_id ID of the network. `null` represents the current network.
1576 */
1577 return apply_filters( 'wp_is_large_user_count', $count > 10000, $count, $network_id );
1578 }
1579
1580 //
1581 // Private helper functions.
1582 //
PHP Documentation
<?php
/**
* Filters whether the site is considered large, based on its number of users.
*
* @since 6.0.0
*
* @param bool $is_large_user_count Whether the site has a large number of users.
* @param int $count The total number of users.
* @param int|null $network_id ID of the network. `null` represents the current network.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.