Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement