• Resolved byannas

    (@byannas)


    Hello, I’m looking to remove the “tel:” from the telephone field, I like the feature but there is a problem with the Vcard extension, it shows the ” tel: ” word in the Vcard, so I’m planning to remove the tel from the telephone field on Ultimatemember to solve this issue. What file to find the telephone field coding?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support andrewshu

    (@andrewshu)

    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.

    Thread Starter byannas

    (@byannas)

    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

    missveronica

    (@missveronicatv)

    @byannas

    I have posted a solution for you here

    https://github.com/ultimatemember/Extended/issues/20

    Plugin Support andrewshu

    (@andrewshu)

    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.

    Thread Starter byannas

    (@byannas)

    Thank yo verymuch,

    I did what @missveronicatv mentioned!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘where to remove ” tel:” from the telephone field’ is closed to new replies.