Re: Function/Call to access Custom Profile Fields?
Andy let me ask you….I am playing with the bp-facebook plugin you ported, and specifically trying to add a value to the insert function you have in there now
function bp_fbconnect_insert_data( $user_id, $usermeta )
///////I tried setting an extra value inside that function – statically for now (just for testing) right under the default “full name” insert you have in there now.
I set it up like this:
xprofile_set_field_data(‘Age’, $user_id, ‘Test’);
I have tried setting with double quotes, no quotes, and several different ways, but it never seems to insert into the “Age” field I created in Buddypress.
Any ideas whats going wrong here? I am wondering if this function isnt firing at the right time? OR maybe I am making a stupid mistake