I am using BuddyPress Xprofile Custom Field Types plugin.
I want to create a users listing with custom fields.
I use bp_get_profile_field_data function that is working fine.
But I get a return value with a link.
I would like only :
Is it possible to filter the return value of this function and remove the link ?
Thanks for your help
Thank you for the question.
It is not caused by the Bp Xprofile Custom Field Types plugin. It is how BuddyPress works. There are 2 solutions.
1. You can disable Autolinking from Dashboard->Users->Profile Fields and editing that specific field.
2. Or you can use
maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
It returns non filtered data.
Hope that helps.
You must be logged in to reply to this topic.