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:
  • 4: .
  • 4: .
  • 5: .
  • 5: .

Description

Retrieves a list of protocols to allow in HTML attributes.

Related Functions

wp_kses_bad_protocol, add_allowed_options, wp_kses_allowed_html, _wp_get_allowed_postdata, allowed_tags

Top Google Results

User discussions

wpseek mobile