Last active
October 25, 2022 15:13
-
-
Save someguy9/aad1f1dcfb7f1efd43eb3f6950669efb to your computer and use it in GitHub Desktop.
Increase the image threshold for WordPress auto resize feature
This file contains 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 | |
// Increase the image resize threshold to 4000px on the longest edge | |
function smartwp_big_image_size_threshold( $threshold ) { | |
return 4000; | |
} | |
add_filter( 'big_image_size_threshold', 'smartwp_big_image_size_threshold', 999, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment