wp_editor_set_quality

wp_editor_set_quality

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('wp_editor_set_quality') is found 1 times:

  • /wp-includes/class-wp-image-editor.php line 277
    			 *     @type int $width  The image width.
    			 *     @type int $height The image height.
    			 * }
    			 */
    			$quality = apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type, $dims ? $dims : $this->size );
    
    			if ( 'image/jpeg' === $mime_type ) {
    				/**
    				 * Filters the JPEG compression quality for backward-compatibility.
    				 *
    				 * Applies only during initial editor instantiation, or when set_quality() is run