Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:


Any thoughts on add skype: as an acceptable protocol?


share|improve this question
Just to clarify, this is concerning the menus under apperance > menu. – addedlovely Jan 9 '12 at 22:55

1 Answer 1

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 file wp-includes/formatting.php, which is always a bad idea.

if ( !is_array($protocols) )
    $protocols = array ('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn');
if ( wp_kses_bad_protocol( $url, $protocols ) != $url )
    return '';

Perhaps I've missed something though.

share|improve this answer
Hmm seems there is a filter, but it doesn't seem to work... apply_filters( 'kses_allowed_protocols', $protocols ) found that digging around wp_allowed_protocols() – addedlovely Jan 10 '12 at 1:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.