wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



image_editor_output_format › WordPress Filter Hooks

Da5.8.0
Deprecaton/a
apply_filters( 'image_editor_output_format', array()
Parametri: (3)
  • (string[]) $output_format { An array of mime type mappings. Maps a source mime type to a new destination mime type. Default empty array. @type string ...$0 The new mime type. }
    Richiesto:
  • (string) $filename Path to the image.
    Richiesto:
  • (string) $mime_type The source image mime type.
    Richiesto:
Definito a:
Codex:

Filters the image editor output format mapping.

Enables filtering the mime type used to save images. By default, the mapping array is empty, so the mime type matches the source image.





Sorgenti

$output_format = apply_filters( 'image_editor_output_format', array(), $filename, $mime_type );