wp_allowed_protocols

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!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: