Last active
December 20, 2015 12:39
-
-
Save 2ndkauboy/6133018 to your computer and use it in GitHub Desktop.
Enables a user to use skype:{Username} as a link target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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