W3cubDocs

/WordPress

apply_filters( ‘wp_max_autoloaded_option_size’, int $max_option_size, string $option )

Filters the maximum size of option value in bytes.

Parameters

$max_option_sizeint
The option-size threshold, in bytes. Default 150000.
$optionstring
The name of the option.

Source

$max_option_size = (int) apply_filters( 'wp_max_autoloaded_option_size', 150000, $option );

Changelog

Version Description
6.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_max_autoloaded_option_size