Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Removing Profile Field Links

Aloha. You can use this for starters:

function df_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) {
global $bp, $field;

remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 2, 2 );

if ( 1 == $field->group_id && 'Name' == $field->name )
return 'change this to whatever you want';
else
return xprofile_filter_link_profile_data( $field_value, $field_type );
}
add_filter( 'bp_get_the_profile_field_value', 'df_xprofile_filter_link_profile_data', 1, 2 );

This is edited from what I’m using for so not guaranteed to work first time.

Skip to toolbar