Created
June 5, 2019 13:02
-
-
Save nfsarmento/90df71de42acd62c16e2a030c0d184e9 to your computer and use it in GitHub Desktop.
Allow skype URIs to be used
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
/** | |
* Allow skype URIs to be used | |
*/ | |
if ( ! function_exists( ( 'ns_portfolio_minimal_allow_skype_protocol' ) ) ) { | |
function ns_portfolio_minimal_allow_skype_protocol( $protocols ) { | |
$protocols[] = 'skype'; | |
return $protocols; | |
} | |
} | |
add_filter( 'kses_allowed_protocols' , 'ns_portfolio_minimal_allow_skype_protocol' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment