wp_get_attachment_metadata filter-hook . WP 2.1.0
Filters the attachment meta data.
Usage
add_filter( 'wp_get_attachment_metadata', 'filter_function_name_2478', 10, 2 ); function filter_function_name_2478( $data, $attachment_id ){ // filter... return $data; }
- $data(array/true/false)
- Array of meta data for the given attachment, or false if the object does not exist.
- $attachment_id(int)
- Attachment post ID.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
wp_get_attachment_metadata
wp-includes/post.php 6109
return apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id );