Title: Capture Attachment IDs
Last modified: September 1, 2016

---

# Capture Attachment IDs

 *  Resolved [tdnicol](https://wordpress.org/support/users/tdnicol/)
 * (@tdnicol)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/capture-attachment-ids/)
 * In my custom theme, I’m using a user_register hook to do some additional processing
   of the form contents after submission. For almost every entry, I can grab the
   necessary information straight from $_POST, but for image uploads I’m really 
   interested in the attachment ID assigned to the image when RegistrationMagic 
   adds it to the library. Is that information externally accessible at that stage?
 * [https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/](https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/)

Viewing 1 replies (of 1 total)

 *  Plugin Support [RegistrationMagic Support](https://wordpress.org/support/users/registrationmagicsupport/)
 * (@registrationmagicsupport)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/capture-attachment-ids/#post-8162631)
 * No, you can not access the attachment ID from the hook as they are created internally
   and not populated in request.
 * However, you can use some database queries to find the attachment IDs associated
   to the submission or user.

Viewing 1 replies (of 1 total)

The topic ‘Capture Attachment IDs’ is closed to new replies.

 * ![](https://ps.w.org/custom-registration-form-builder-with-submission-manager/
   assets/icon.svg?rev=2547375)
 * [RegistrationMagic - User Registration Forms Plugin](https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-registration-form-builder-with-submission-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-registration-form-builder-with-submission-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [RegistrationMagic Support](https://wordpress.org/support/users/registrationmagicsupport/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/capture-attachment-ids/#post-8162631)
 * Status: resolved