wp_editor_set_quality

Advertisement

Summery Summery

Filters the default image compression quality setting.

Syntax Syntax

apply_filters( 'wp_editor_set_quality', int $quality, string $mime_type )

Description Description

Applies only during initial editor instantiation, or when set_quality() is run manually without the $quality argument.

The WP_Image_Editor::set_quality() method has priority over the filter.

Parameters Parameters

$quality

(int) Quality level between 1 (low) and 100 (high).

$mime_type

(string) Image mime type.

Source Source

File: wp-includes/class-wp-image-editor.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.