Home / Disable Auto-Scaling Oversized Images
Duplicate Snippet

Embed Snippet on Your Site

Disable Auto-Scaling Oversized Images

Prevent WordPress from scaling large images added in v5.3.

100+
Code Preview
php
<?php
add_filter( 'big_image_size_threshold', '__return_false' );

Comments

Add a Comment