image_editor_save_pre WordPress Filter Hook

This hook is called just before an image is saved to the database. It provides an opportunity for you to modify the image before it is stored.

apply_filters( 'image_editor_save_pre', WP_Image_Editor $image, int $attachment_id ) #

Filters the WP_Image_Editor instance for the image to be streamed to the browser.


Parameters

$image

(WP_Image_Editor)The image editor instance.

$attachment_id

(int)The attachment post ID.


Top ↑

Source

File: wp-admin/includes/image-edit.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.