wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_save_image_editor_file › WordPress Filter Hooks

Seit3.5.0
Veraltetn/v
apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id )
Parameter: (5)
  • (bool|null) $override Value to return instead of saving. Default null.
    Erforderlich: Ja
  • (string) $filename Name of the file to be saved.
    Erforderlich: Ja
  • (WP_Image_Editor) $image The image editor instance.
    Erforderlich: Ja
  • (string) $mime_type The mime type of the image.
    Erforderlich: Ja
  • (int) $post_id Attachment post ID.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to skip saving the image file.

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





Quellcode

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