Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable image scaling in WordPress (Introduced in WordPress 5.3)
<?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