Ho to style a $field_data in buddypress function
-
Hi, I would like to set a css class/style (in this case “font-weight: 400;”) to a $field_data in a buddypress function and I’m not really sure how can I do that. This is the code:
function yzc_add_xprofile_field_data_after_username( $name ) { if ( bp_is_members_directory() ) { $field_data = xprofile_get_field_data( 'Age', bp_get_member_user_id() ); return $name . ', ' . $field_data; } return $name; } add_filter( 'bp_member_name', 'yzc_add_xprofile_field_data_after_username', 10 );
Thanks a lot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.