Skip to content

Instantly share code, notes, and snippets.

@nfsarmento
Created June 5, 2019 13:02
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 nfsarmento/90df71de42acd62c16e2a030c0d184e9 to your computer and use it in GitHub Desktop.
Save nfsarmento/90df71de42acd62c16e2a030c0d184e9 to your computer and use it in GitHub Desktop.
Allow skype URIs to be used
/**
* 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