wp_edit_form_attachment_display WordPress Action Hook

The wp_edit_form_attachment_display hook allows you to modify the way an attachment is displayed on the edit screen. This is useful for displaying additional information about the attachment, or for hiding certain fields from the user.

do_action( 'wp_edit_form_attachment_display', WP_Post $post ) #

Fires when an attachment type can’t be rendered in the edit form.


Parameters

$post

(WP_Post)A post object.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

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