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.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |