Skip to content

Snippet: Allow Skype Links In The Theme

The Total theme uses the core WordPress esc_url function to sanitize links which by default strips out the skype protocal. You can use this function to allow it in your theme (any theme).

add_filter( 'kses_allowed_protocols', function( $protocols ){
    $protocols[] = 'skype';
    return $protocols;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top