wp_editor_set_quality

wp_editor_set_quality

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_editor_set_quality') is found 1 times:

  • /wp-includes/class-wp-image-editor.php line 267
    			 *
    			 * @param int    $quality   Quality level between 1 (low) and 100 (high).
    			 * @param string $mime_type Image mime type.
    			 */
    			$quality = apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type );
    
    			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