• Resolved esgu242

    (@esgu242)


    Hi,
    Thank you for the wonderful plugin!!

    I tried to exclude an image – but it is still served as webp

    The reason I want to exclude it, because any convert on it [even with photoshop] – makes it bigger than original size [400Kb -> 500Kb+]

    I used the snippet – but didn’t work:

    add_filter(‘optml_dont_replace_url’, function( $old, $url ) {
    if ( $url === ‘https://benjamin-axe.co.il/wp-content/uploads/2021/02/night-rider-cover-2.jpg’ ) {
    return true;
    }
    return $old;

    }, 10, 2);

    Thanks in advance!
    Lior.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Excluding Images’ is closed to new replies.