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



wp_save_image_editor_file › WordPress Filter Hooks

Da3.5.0
Deprecaton/a
apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id )
Parametri: (5)
  • (bool|null) $override Value to return instead of saving. Default null.
    Richiesto:
  • (string) $filename Name of the file to be saved.
    Richiesto:
  • (WP_Image_Editor) $image The image editor instance.
    Richiesto:
  • (string) $mime_type The mime type of the image.
    Richiesto:
  • (int) $post_id Attachment post ID.
    Richiesto:
Definito a:
Codex:

Filters whether to skip saving the image file.

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





Sorgenti

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