If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not.
The username URL is in the following format:
skype:example?call
Any thoughts on add skype: as an acceptable protocol?
Thanks.
If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not.
The username URL is in the following format:
skype:example?call
Any thoughts on add skype: as an acceptable protocol?
Thanks.
You must be logged in to post a comment.
I believe the
esc_url
function is what ultimately filters the url you enter in that field. Unfortunately, I don’t see how you could allow the skype protocol without manually editing that function in the core filewp-includes/formatting.php
, which is always a bad idea.Perhaps I’ve missed something though.
You can make the skype: as an acceptable protocol by adding the following code in the functions.php file of your child theme or develop a small plugin and add it in that plugin file.