wp_update_attachment_metadata WordPress Filter Hook

This hook is called whenever an attachment is updated. It gives you the opportunity to update the attachment's meta data.

apply_filters( 'wp_update_attachment_metadata', array $data, int $attachment_id ) #

Filters the updated attachment meta data.


Parameters

$data

(array)Array of updated attachment meta data.

$attachment_id

(int)Attachment post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

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

Show More