wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_editor_set_quality › WordPress Filter Hooks

Seit3.5.0
Veraltetn/v
apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type )
Parameter: (2)
  • (int) $quality Quality level between 1 (low) and 100 (high).
    Erforderlich: Ja
  • (string) $mime_type Image mime type.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the default image compression quality setting.

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.





Quellcode

$quality = apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type );