styles_inline_size_limit filter-hookWP 5.8.0

The maximum size of inlined styles in bytes.

Usage

add_filter( 'styles_inline_size_limit', 'wp_kama_styles_inline_size_limit_filter' );

/**
 * Function for `styles_inline_size_limit` filter-hook.
 * 
 * @param int $total_inline_limit The file-size threshold, in bytes.
 *
 * @return int
 */
function wp_kama_styles_inline_size_limit_filter( $total_inline_limit ){

	// filter...
	return $total_inline_limit;
}
$total_inline_limit(int)
The file-size threshold, in bytes.
Default: 20000

Changelog

Since 5.8.0 Introduced.

Where the hook is called

wp_maybe_inline_styles()
styles_inline_size_limit
wp-includes/script-loader.php 2964
$total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit );

Where the hook is used in WordPress

Usage not found.