Title: styles_inline_size_limit
Published: July 20, 2021
Last modified: February 24, 2026

---

# apply_filters( ‘styles_inline_size_limit’, int $total_inline_limit )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#wp--skip-link--target)

The maximum size of inlined styles in bytes.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#parameters)󠁿

 `$total_inline_limit`int

The file-size threshold, in bytes. Default 40000.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#source)󠁿

    ```php
    $total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/script-loader.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/script-loader.php#L3071)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/script-loader.php#L3071-L3071)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_maybe_inline_styles()](https://developer.wordpress.org/reference/functions/wp_maybe_inline_styles/)`wp-includes/script-loader.php` |

Allows small styles to be inlined.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/styles_inline_size_limit/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.9.0](https://developer.wordpress.org/reference/since/6.9.0/) | The default limit increased from 20K to 40K. | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fstyles_inline_size_limit%2F)
before being able to contribute a note or feedback.