File upload hook?
-
Hi there,
I love Forminator, it is way more powerful than I thought, you guys have done an outstanding job with this plugin.
I’m trying to execute some code when a user uploads a file using a Forminator form, so I tried writing some code using the ‘add_attachment’ hook. But it doesn’t seem to execute when a user tries uploading using the Forminator form. The form works fine, and the file gets uploaded okay, but the hook isn’t called so my code doesn’t run. The hook is called when I upload a file through the WP Media Library, though.
I’m just trying to set some metadata for the file being uploaded (and I need the user ID of the user who is uploading it, too, btw).
Any ideas on which hook I should be using or why it might not be getting called?
Thanks.
- The topic ‘File upload hook?’ is closed to new replies.