• Resolved 234537

    (@234537-1)


    Hi Junaid,

    I have been enjoying your plugin because it has automatic features by default.

    I would be grateful you could please help me to add a custom filter to optimize and resize all the images.

    Where should I add my following code?

    add_filter( ‘cloudinary_args’, function ( $args ) {
    return array(
    ‘transform’ => array(
    ‘width’ => ‘auto’,
    ‘dpr’ => ‘auto’,
    ‘quality’ => ‘auto’,
    ‘fetch_format’ => ‘auto’,
    ),
    );
    } );

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where do you add the code of a filter?’ is closed to new replies.