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)
  • () override Value to return instead of saving. Default null.
    Erforderlich: Ja
  • () filename Name of the file to be saved.
    Erforderlich: Ja
  • () image The image editor instance.
    Erforderlich: Ja
  • () mime_type The mime type of the image.
    Erforderlich: Ja
  • () 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 );