wp_edited_image_metadata WordPress Filter Hook

The wp_edited_image_metadata hook is triggered when a user has edited the image metadata for a given image. This hook can be used to perform an action after the image metadata has been updated.

apply_filters( 'wp_edited_image_metadata', array $new_image_meta, int $new_attachment_id, int $attachment_id ) #

Filters the meta data for the new image created by editing an existing image.


Parameters

$new_image_meta

(array)Meta data for the new image.

$new_attachment_id

(int)Attachment post ID for the new image.

$attachment_id

(int)Attachment post ID for the edited (parent) image.


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.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.