wp_edit_form_attachment_display
Fires when an attachment type can't be rendered in the edit form.
Usage
add_action( 'wp_edit_form_attachment_display', 'wp_kama_edit_form_attachment_display_action' ); /** * Function for `wp_edit_form_attachment_display` action-hook. * * @param WP_Post $post A post object. * * @return void */ function wp_kama_edit_form_attachment_display_action( $post ){ // action... }
- $post(WP_Post)
- A post object.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
wp_edit_form_attachment_display
wp-admin/includes/media.php 3226
do_action( 'wp_edit_form_attachment_display', $post );