Created
May 9, 2022 19:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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