apply_filters( 'um_edit_label_all_fields', $label, $data ) → {string}
Filters Ultimate Member field label on the Profile form: Edit mode.
Parameters:
Name | Type | Description |
---|---|---|
$label |
string | Field label. |
$data |
string | Field data. |
- Since:
- 2.0.0
- Source:
Returns:
Field label.
- Type
- string
Example
function my_change_first_name_label( $label, $data ) {
if ( 'first_name' === $data['metakey'] ) {
$label = 'My label';
}
return $label;
}
add_filter( 'um_edit_label_all_fields', 'my_change_first_name_label', 10, 2 );