function custom_wp_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'tel' ); $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); } return $protocols; } add_filter('wp_allowed_protocols', 'custom_wp_allowed_protocols');