wp_edit_form_attachment_display action-hookWP 4.6.0

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

edit_form_image_editor()
wp_edit_form_attachment_display
wp-admin/includes/media.php 3218
do_action( 'wp_edit_form_attachment_display', $post );

Where the hook is used in WordPress

Usage not found.