media_meta WordPress Filter Hook

The media_meta hook allows you to add custom fields to attachment pages. This hook is useful for adding extra data to attachments, such as credit information or copyright data. The media_meta hook is called on the attachment page after the default fields are output.

apply_filters( 'media_meta', string $media_dims, WP_Post $post ) #

Filters the media metadata.


Parameters

$media_dims

(string)The HTML markup containing the media dimensions.

$post

(WP_Post)The WP_Post attachment object.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

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

Show More
Show More