Skip to content

Instantly share code, notes, and snippets.

@mager19
Created May 9, 2022 19:49
Show Gist options
  • Save mager19/99f9d82b095eb45d3091d08265e42e70 to your computer and use it in GitHub Desktop.
Save mager19/99f9d82b095eb45d3091d08265e42e70 to your computer and use it in GitHub Desktop.
populate a field, el 'emaito' es el parametro de populate q se setea.
add_filter('gform_field_value_emailto', 'add_job_email');
function add_job_email($value)
{
global $post;
$id = $post->id;
$email = get_field('email_to', $id);
return $email;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment