Support » Requests and Feedback » Request to add "callto" to esc_url_raw function

  • I’m building a “mobile friendly” site and would like to add a “callto:” link to the nav. I’ve noticed that a Custom Menu Item with a URL of “callto:+390444551911” does not save the value (it’s stripped out and left blank). Callto is basically a the same as “mailto:” which is an allowed “protocol”.

    Can “callto” be added to the allowed list of protocols?

Viewing 1 replies (of 1 total)
  • Thread Starter mountainash

    (@mountainash)

    Digging in to this further (the beauty of open-source), I’ve discovered that “tel” is an allowed protocol (“wp_allowed_protocols”) – but it seems that “callto” is the preferred option on the web as it also triggers Skype for desktop users (along with smartphone phone call apps).

    Also of note is that “tel” is not in the WP documentation (also missing is ‘mms’, ‘rtsp’, ‘svn’, ‘tel’, ‘fax’, ‘xmpp’).

Viewing 1 replies (of 1 total)
  • The topic ‘Request to add "callto" to esc_url_raw function’ is closed to new replies.