attachment_updated

attachment_updated

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('attachment_updated') is found 1 times:

  • /wp-includes/post.php line 4973
    4969
    4970
    4971
    4972
    4973
    4974
    4975
    4976
    4977
    4978
    4979
         * @param int     $post_id      Post ID.
         * @param WP_Post $post_after   Post object following the update.
         * @param WP_Post $post_before  Post object before the update.
         */
        do_action( 'attachment_updated', $post_id, $post_after, $post_before );
    } else {
     
        /**
         * Fires once an attachment has been added.
         *
         * @since 2.0.0

See this hook used in plugins: