apply_filters( 'um_view_label_{$key}', $label, $data ) → {string}
Filters Ultimate Member field label on the Profile form: View mode. Note: $key it's field metakey.
Parameters:
Name | Type | Description |
---|---|---|
$label |
string | Field label. |
$data |
string | Field data. |
- Since:
- 2.8.0 Added $data attribute.
- Source:
Returns:
Field label.
- Type
- string
Example
function my_change_first_name_label( $label, $data ) {
$label = 'My label';
return $label;
}
add_filter( 'um_view_label_first_name', 'my_change_first_name_label', 10, 2 );