When creating a custom filter for “frm_validate_field_entry”, what values are returned for $_POST['item_meta'][n] ?
More specifically, if I have an upload file field in the form, does it return the numeric ID of the file? Or does it return the URL to the uploaded file?
I need the ability to stick the URL to the file into a custom post and I haven’t been able to gain access to it from within the filter.
If the value returned is the numeric ID, can I use “wp_get_attachment_url” to get the URL and put it in the post?




October 23, 2012 at 12:53 pm
Yes, the media ID is passed after the file is uploaded. That WP function will give you the URL when you give it the id.
Topic closed.