resize_jpeg_quality

The shortcodes-ultimate resize jpeg quality hook.

Published Date - February 15, 2021

Description

if ( ! imagejpeg( $new_image, $dest_file_name, apply_filters( 'resize_jpeg_quality', 90 ) ) ) {

Parameters

  1. $90


Usage

The following example is for adding a hook callback.

// define the resize_jpeg_quality callback 
function custom_resize_jpeg_quality( $90 ){ 
   //custom code here
    return $90
} 

//add the action 
add_filter('resize_jpeg_quality', 'custom_resize_jpeg_quality', 10, 1)

Defined

The filter is defined in the following location(s).

shortcodes-ultimate/inc/core/tools.php

if ( ! imagejpeg( $new_image, $dest_file_name, apply_filters( 'resize_jpeg_quality', 90 ) ) ) {