Filter: um_view_label_{$key}

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

Change first name field label on the Profile form: view mode.

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 );