Filter hook 'jpeg_quality'

in WP Core File wp-admin/includes/image-edit.php at line 493

Description

Filters whether to skip saving the image file. Returning a non-null value will short-circuit the save method, returning that value instead.

Occurrences

Filename Line Number
wp-admin/includes/image-edit.php 493
wp-includes/class-wp-image-editor.php 286

Parameters

Type Name Description
bool|null $override Value to return instead of saving. Default null.
string $filename Name of the file to be saved.
resource|GdImage $image Image resource or GdImage instance.
string $mime_type The mime type of the image.
int $post_id Attachment post ID.

PHP Doc

/**
		 * Filters whether to skip saving the image file.
		 *
		 * Returning a non-null value will short-circuit the save method,
		 * returning that value instead.
		 *
		 * @since 2.9.0
		 * @deprecated 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.
		 *
		 * @param bool|null        $override  Value to return instead of saving. Default null.
		 * @param string           $filename  Name of the file to be saved.
		 * @param resource|GdImage $image     Image resource or GdImage instance.
		 * @param string           $mime_type The mime type of the image.
		 * @param int              $post_id   Attachment post ID.
		 */