I got things ALMOST working now. Looks like this code MUST be in a function in order to operate properly for some reason.
Here is the code:
$user_id = $user->ID;
write_log('$user_id: '. $user_id); // This output the user ID correctly in my log!
$users_name = xprofile_get_field_data( 'Name', $user_id );
This does NOT work. It’s…[Read more]
For the life of me, I cannot seem to fetch an xprofile field that I need to put into a custom email inside my custom plugin.
I have scoured these forums all day and tried everything but nothing seems to work.
– Custom plugin.
I want to custom field “Name” that the person is required to fill out when registering for the site.
@buddyq Active 1 year, 2 months ago