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', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', '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:
  • 4: .
  • 4: .

Description

Retrieve a list of protocols to allow in HTML attributes.

Related Functions

wp_kses_bad_protocol, wp_kses_allowed_html, allowed_tags, wp_kses_bad_protocol_once, wp_get_server_protocol

Top Google Results

User discussions

wpseek mobile