1. function custom_wp_allowed_protocols() {
  2.     static $protocols;
  3.     if ( empty( $protocols ) ) {
  4.         $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel' );
  5.         $protocols = apply_filters( 'kses_allowed_protocols', $protocols );
  6.     }
  7.     return $protocols;
  8. }
  9. add_filter('wp_allowed_protocols', 'custom_wp_allowed_protocols');