add_attachment

add_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('add_attachment') is found 1 times:

  • /wp-includes/post.php line 4983
    4979
    4980
    4981
    4982
    4983
    4984
    4985
    4986
    4987
    4988
    4989
             * @since 2.0.0
             *
             * @param int $post_id Attachment ID.
             */
            do_action( 'add_attachment', $post_id );
        }
     
        return $post_id;
    }
     
    if ( $update ) {

See this hook used in plugins: