WordPress.org

Ready to get started?Download WordPress

Forums

Request to add "callto" to esc_url_raw function (2 posts)

  1. mountainash
    Member
    Posted 1 year ago #

    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?

  2. mountainash
    Member
    Posted 1 year ago #

    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').

Topic Closed

This topic has been closed to new replies.

About this Topic