Is it possible to Hook/Filters Attachment Creation?

You can hook into the ‘add_attachment’ action from wp-includes/post.php Line:3738.

It passes in the post_id and from there you can get the file name and then update the post meta with anything you need to.

Leave a Comment

tech