Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Last active December 20, 2015 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2ndkauboy/6133018 to your computer and use it in GitHub Desktop.
Save 2ndkauboy/6133018 to your computer and use it in GitHub Desktop.
Enables a user to use skype:{Username} as a link target
<?php
/*
Plugin Name: Add Skype To Allowed Protocols
Plugin URI: https://gist.github.com/2ndkauboy/6133018
Description: Enables a user to use skype:{Username} as a link target
Version: 0.1
Author: Bernhard Kau
Author URI: http://kau-boys.de
*/
function add_skype_to_allowed_protocols( $protocols ) {
$protocols[] = 'skype';
return $protocols;
}
add_filter( 'kses_allowed_protocols', 'add_skype_to_allowed_protocols' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment