diff --git src/bp-members/bp-members-template.php src/bp-members/bp-members-template.php
index 0f69430..80735e4 100644
|
|
function bp_member_profile_data( $args = '' ) { |
1144 | 1144 | * @param string|bool $data Profile data if found, otherwise false. |
1145 | 1145 | * @param array $r Array of parsed arguments. |
1146 | 1146 | */ |
1147 | | return apply_filters( 'bp_get_member_profile_data', $data, $r ); |
| 1147 | $data = apply_filters( 'bp_get_member_profile_data', $data, $r ); |
| 1148 | |
| 1149 | /** |
| 1150 | * Filters the resulting piece of member profile data by field type. |
| 1151 | * |
| 1152 | * This is a dynamic filter based on field type of the current field requested. |
| 1153 | * |
| 1154 | * @since 2.7.0 |
| 1155 | * |
| 1156 | * @param string|bool $data Profile data if found, otherwise false. |
| 1157 | * @param array $r Array of parsed arguments. |
| 1158 | */ |
| 1159 | $data = apply_filters( 'bp_get_member_profile_data_' . $profile_data[ $r['field'] ]['field_type'], $data, $r ); |
| 1160 | |
| 1161 | return $data; |
1148 | 1162 | } |
1149 | 1163 | |
1150 | 1164 | /** |