Last active
October 25, 2022 14:56
-
-
Save someguy9/7be6a94f728d2a74ae03d4cbf446aba5 to your computer and use it in GitHub Desktop.
Disable image scaling in WordPress (Introduced in WordPress 5.3)
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 | |
// Disable WordPress' automatic image scaling feature | |
add_filter( 'big_image_size_threshold', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment