SOLVED: Filtering display/nice name everywhere
-
Maybe this is a more basic WP question, but I’ve looked and can’t find a clear answer. I’m trying to filter the name of a member everywhere its shown in BP. It looks like apply_filters is setting addition variables, but I get an warnings about missing arguements…
Line 187 in bp-xprofile-functions.php
$data = apply_filters( 'xprofile_get_field_data', $values, $field_id, $user_id );
My custom filter…
function my_name_filter($values, $field_id, $user_id) { //just testing to see what I get or don't get echo ("$values - $arg2 - $arg3"); return $values; } add_filter('xprofile_get_field_data', 'my_name_filter');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘SOLVED: Filtering display/nice name everywhere’ is closed to new replies.