site_status_persistent_object_cache_thresholds
Filter HookDescription
Filters the thresholds used to determine whether to suggest the use of a persistent object cache.Hook Information
File Location |
wp-admin/includes/class-wp-site-health.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3542 |
Hook Parameters
Type | Name | Description |
---|---|---|
int[]
|
$thresholds
|
The list of threshold numbers keyed by threshold name. |
Usage Examples
Basic Usage
<?php
// Hook into site_status_persistent_object_cache_thresholds
add_filter('site_status_persistent_object_cache_thresholds', 'my_custom_filter', 10, 1);
function my_custom_filter($thresholds) {
// Your custom filtering logic here
return $thresholds;
}
Source Code Context
wp-admin/includes/class-wp-site-health.php:3542
- How this hook is used in WordPress core
<?php
3537 *
3538 * @since 6.1.0
3539 *
3540 * @param int[] $thresholds The list of threshold numbers keyed by threshold name.
3541 */
3542 $thresholds = apply_filters(
3543 'site_status_persistent_object_cache_thresholds',
3544 array(
3545 'alloptions_count' => 500,
3546 'alloptions_bytes' => 100000,
3547 'comments_count' => 1000,
PHP Documentation
<?php
/**
* Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
*
* @since 6.1.0
*
* @param int[] $thresholds The list of threshold numbers keyed by threshold name.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-site-health.php
Related Hooks
Related hooks will be displayed here in future updates.