edit_attachment

edit_attachment

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('edit_attachment') is found 1 times:

  • /wp-includes/post.php line 4960
    4956
    4957
    4958
    4959
    4960
    4961
    4962
    4963
    4964
    4965
    4966
    * @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: