userpro API for get field values – UserPro Forums https://forum.userproplugin.com/forums/topic/userpro-api/feed/ Tue, 30 Apr 2024 00:11:05 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/userpro-api/#post-17794 <![CDATA[userpro API for get field values]]> https://forum.userproplugin.com/forums/topic/userpro-api/#post-17794 Sun, 19 Jan 2014 19:17:26 +0000 Adi 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???

]]>
https://forum.userproplugin.com/forums/topic/userpro-api/#post-17878 <![CDATA[Reply To: userpro API for get field values]]> https://forum.userproplugin.com/forums/topic/userpro-api/#post-17878 Mon, 20 Jan 2014 01:26:50 +0000 admin $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.

]]>
https://forum.userproplugin.com/forums/topic/userpro-api/#post-17919 <![CDATA[Reply To: userpro API for get field values]]> https://forum.userproplugin.com/forums/topic/userpro-api/#post-17919 Mon, 20 Jan 2014 06:04:52 +0000 Adi It’s the logged in user yes.

Thanks for you help.

]]>
https://forum.userproplugin.com/forums/topic/userpro-api/#post-17926 <![CDATA[Reply To: userpro API for get field values]]> https://forum.userproplugin.com/forums/topic/userpro-api/#post-17926 Mon, 20 Jan 2014 08:10:35 +0000 Adi Thanks for pointing me to the answer 🙂 I was just get it..

]]>