wp_allowed_protocols
wp_allowed_protocols ( No parameters )
See:Returns:- (string[]) Array of allowed protocols. Defaults to an array containing 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'irc6', 'ircs', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'sms', 'svn', 'tel', 'fax', 'xmpp', 'webcal', and 'urn'. This covers all common link protocols, except for 'javascript' which should not be allowed for untrusted users.
Defined at:Change Log: - Introduced in WordPress: 3.3.0
- Deprecated in WordPress: —
Description
Retrieves a list of protocols to allow in HTML attributes.