hnla: No, that’s not a good idea because Google will ignore it with jQuery.
Greg: I agree hardcoding it is a good idea, but I always have core in mind when I read this sort of discussion
xprofile_screen_display_profile is an action, not a filter. I assume you’re trying to change the value of an xprofiel field. ‘bp_get_the_profile_field_value’ is probably the filter you want.
function gf_relme($value, $type, $id) {
if (782 == $id) {
return str_replace('<a ','<a rel="me" ',$value);
}
}
add_filter('bp_get_the_profile_field_value', 'gf_relme', 10, 3);