Created
January 20, 2022 10:44
-
-
Save adczk/847ef4dea710a5315bb3649df76fc258 to your computer and use it in GitHub Desktop.
Allow inline of CSS files bigger than 4kb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /************************** | |
| * | |
| * Hummingibrd - allow "inline" of CSS larger than default 4kb | |
| * | |
| * Tested with Hummingbird 3.3.0 only | |
| * | |
| * use as MU plugin | |
| ***************************/ | |
| add_filter( 'wphb_inline_limit_kb', 'wphb_custom_inline_limit_kb' ); | |
| function wphb_custom_inline_limit_kb() { | |
| $limit = 130; // value in kb | |
| return $limit; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment