Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jms006

  • Rank
  1. Hi everyone I've been developing Wordpress sites for years but never had to go into PHP until now. I have a Gravity form and another plugin called Gravity Advanced File Uploader. What I am trying to do is retrieve a YouTube ID when the user uploads a video via the form and store it in another field automatically. The video currently uploads using a YouTube API key before the form is submitted. The plugin developer has supplied the hook needed but being new to PHP I have no idea how to integrate this. add_action(‘prso_gform_youtube_uploader_pre_update_meta’, ‘prso_get_youtube_id’); function prso_get_youtube_id( $field_values, $form_data ) { //$field_values is an array containing array of field_ids and video ids //$form_data contains info on the submitted form and entries } I'm assuming I also need to use something like gform_field_value as well to store the retrieved video ID. Sorry if this seems confusing, I really am new to all this code! Thanks in advance.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.