Hello @byannas
In the UM there is no “tel:” text in phone field.
If you mean vcard extension, please create the issue here https://github.com/ultimatemember/Extended because the functionality you asked about isn’t related to build-in functionality of Ultimate Member plugin.
Regards.
Hello @andrewshu ,
The function click to call it is automatically active in the Ultimate Member, in the phone field the link is generated with a ” tel: ” word and this cause a problem with the Vcard extension
@byannas
I have posted a solution for you here
https://github.com/ultimatemember/Extended/issues/20
Hello @byannas
If you want to change the phone field in the UM core plugin, please add this code to your functions.php in your child theme folder:
remove_filter( 'um_profile_field_filter_hook__phone_number', 'um_profile_field_filter_hook__phone', 99, 2 );
remove_filter( 'um_profile_field_filter_hook__mobile_number', 'um_profile_field_filter_hook__phone', 99, 2 );
function custom_um_profile_field_filter_hook__phone( $value, $data ) {
$value="<a href="" . esc_attr( $value ) . '" rel="nofollow" title="' . esc_attr( $data['title'] ) . '">' . esc_html( $value ) . '</a>';
return $value;
}
add_filter( 'um_profile_field_filter_hook__phone_number', 'custom_um_profile_field_filter_hook__phone', 99, 2 );
add_filter( 'um_profile_field_filter_hook__mobile_number', 'custom_um_profile_field_filter_hook__phone', 99, 2 );Regards.
Thank yo verymuch,
I did what @missveronicatv mentioned!
