edit_attachment action-hookWP 2.0.0

Fires once an existing attachment has been updated.

Usage

add_action( 'edit_attachment', 'wp_kama_edit_attachment_action' );

/**
 * Function for `edit_attachment` action-hook.
 * 
 * @param int $post_ID Attachment ID.
 *
 * @return void
 */
function wp_kama_edit_attachment_action( $post_ID ){

	// action...
}
$post_ID(int)
Attachment ID.

Changelog

Since 2.0.0 Introduced.

Where the hook is called

wp_insert_post()
edit_attachment
wp-includes/post.php 4617
do_action( 'edit_attachment', $post_ID );

Where the hook is used in WordPress

Usage not found.