wp_max_autoloaded_option_size

wp_max_autoloaded_option_size

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_max_autoloaded_option_size') is found 1 times:

  • /wp-includes/option.php line 1353
    1349
    1350
    1351
    1352
    1353
    1354
    1355
    1356
    1357
    1358
    *
     * @param int    $max_option_size The option-size threshold, in bytes. Default 150000.
     * @param string $option          The name of the option.
     */
    $max_option_size = (int) apply_filters( 'wp_max_autoloaded_option_size', 150000, $option );
    $size            = ! empty( $serialized_value ) ? strlen( $serialized_value ) : 0;
     
    if ( $size > $max_option_size ) {
        return false;
    }