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



wp_save_image_editor_file › Filtr WordPress Hooks

Od3.5.0
Przestarzałyn/a
apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id )
Parametry: (5)
  • (bool|null) $override Value to return instead of saving. Default null.
    Wymagane: Tak
  • (string) $filename Name of the file to be saved.
    Wymagane: Tak
  • (WP_Image_Editor) $image The image editor instance.
    Wymagane: Tak
  • (string) $mime_type The mime type of the image.
    Wymagane: Tak
  • (int) $post_id Attachment post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether to skip saving the image file.

Returning a non-null value will short-circuit the save method, returning that value instead.





Źródło

$saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );