styles_inline_size_limit WordPress Filter Hook

The styles_inline_size_limit hook is used to set the maximum allowed size for an inline style tag. This can be useful for preventing malicious code from being injected into a page through the style tag.

apply_filters( 'styles_inline_size_limit', int $total_inline_limit ) #

The maximum size of inlined styles in bytes.


Parameters

$total_inline_limit

(int)The file-size threshold, in bytes. Default 20000.


Top ↑

Source

File: wp-includes/script-loader.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More