edit_attachment

edit_attachment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('edit_attachment') is found 1 times:

  • /wp-includes/post.php line 4660
    			 * @since 2.0.0
    			 *
    			 * @param int $post_id Attachment ID.
    			 */
    			do_action( 'edit_attachment', $post_id );
    
    			$post_after = get_post( $post_id );
    
    			/**
    			 * Fires once an existing attachment has been updated.
    			 *
    

See this hook used in plugins: