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

apply_filters('wp_max_autoloaded_option_size') is found 1 times:

  • /wp-includes/option.php line 1353
    	 *
    	 * @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;
    	}