Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_editor_set_quality ›

Da3.5.0
Deprecaton/a
apply_filters( 'wp_editor_set_quality', $this->default_quality, $this->mime_type )
Parametri: (2)
  • (int) $quality Quality level between 1 (low) and 100 (high).
    Richiesto:
  • (string) $mime_type Image mime type.
    Richiesto:
Definito a:
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.

set_quality() has priority over the filter.





Sorgenti

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