Snippets: 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;
} );

Snippet Type: PHP

Posted Under: Core

All PHP snippets should be added via a child theme's functions.php file.