site_status_autoloaded_options_size_limit
Filter HookDescription
Filters max bytes threshold to trigger warning in Site Health.Hook Information
File Location |
wp-admin/includes/class-wp-site-health.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2648 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$limit
|
Autoloaded options threshold size. Default 800000. |
Usage Examples
Basic Usage
<?php
// Hook into site_status_autoloaded_options_size_limit
add_filter('site_status_autoloaded_options_size_limit', 'my_custom_filter', 10, 1);
function my_custom_filter($limit) {
// Your custom filtering logic here
return $limit;
}
Source Code Context
wp-admin/includes/class-wp-site-health.php:2648
- How this hook is used in WordPress core
<?php
2643 *
2644 * @since 6.6.0
2645 *
2646 * @param int $limit Autoloaded options threshold size. Default 800000.
2647 */
2648 $limit = apply_filters( 'site_status_autoloaded_options_size_limit', 800000 );
2649
2650 if ( $autoloaded_options_size < $limit ) {
2651 return $result;
2652 }
2653
PHP Documentation
<?php
/**
* Filters max bytes threshold to trigger warning in Site Health.
*
* @since 6.6.0
*
* @param int $limit Autoloaded options threshold size. Default 800000.
*/
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.