Definition:
function wp_allowed_protocols() {}
Retrieve a list of protocols to allow in HTML attributes.
Return values
returns:Array of allowed protocols
Defined filters
- kses_allowed_protocols
apply_filters( 'kses_allowed_protocols', $protocols )
Source code
function wp_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' ); $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); } return $protocols; }
17428
No comments yet... Be the first to leave a reply!