Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
I try to user user pro for dynamically populate values in gravity forms. what i try is
add_filter(‘gform_field_value_user_anrede’, ‘user_anrede’);
function user_anrede($value){
global $userpro;
return userpro_profile_data(‘user_anrede’, $user_id);
}
this returns me nothing. but when I use
add_filter(‘gform_field_value_user_anrede’, ‘user_anrede’);
function user_anrede($value){
global $userpro;
return ‘Example’;
}
anyone any Idea???
$user_id needs to be defined. 🙂 Is user id the logged in user ID? or author ID? I can give you the correct code to use upon your answer.
You must be logged in to reply to this topic.