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



image_editor_output_format › Filtr WordPress Hooks

Od5.8.0
Przestarzałyn/a
apply_filters( 'image_editor_output_format', array()
Parametry: (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. }
    Wymagane: Tak
  • (string) $filename Path to the image.
    Wymagane: Tak
  • (string) $mime_type The source image mime type.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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