apply_filters( 'wp_editor_set_quality', int $quality , string $mime_type )
Filters the default image compression quality setting.
Description
Applies only during initial editor instantiation, or when set_quality() is run manually without the $quality
argument.
set_quality() has priority over the filter.
Parameters
- $quality
-
(int) Quality level between 1 (low) and 100 (high).
- $mime_type
-
(string) Image mime type.
Source
Changelog
Version | Description |
---|---|
WP-3.5.0 | Introduced. |