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

In this article

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

VersionDescription
6.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.