wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_editor_set_quality › Filtr WordPress Hooks

Od6.8.0
Przestarzałyn/a
› apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type, $dims ? $dims : $this->size )
Parametry: (3)
  • () quality Quality level between 1 (low) and 100 (high).
    Wymagane: Tak
  • () mime_type Image mime type.
    Wymagane: Tak
  • () size { Dimensions of the image. @type int $width The image width. @type int $height The image height. }
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

$quality = apply_filters( 'wp_editor_set_quality', $default_quality, $mime_type, $dims ? $dims : $this->size );