WP_Http::parse_url

Advertisement

Deprecated Deprecated

This method has been deprecated. Use wp_parse_url() instead.

Summery Summery

Used as a wrapper for PHP’s parse_url() function that handles edgecases in < PHP 5.4.7.

Syntax Syntax

WP_Http::parse_url( string $url )

Parameters Parameters

$url

(Required) The URL to parse.

Return Return

(bool|array) False on failure; Array of URL components on success; See parse_url()'s return values.

Source Source

File: wp-includes/class-http.php

	 *
	 * @param string $url The URL to parse.
	 * @return bool|array False on failure; Array of URL components on success;
	 *                    See parse_url()'s return values.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

See also See also

Advertisement

Leave a Reply