Filter hook 'http_request_reject_unsafe_urls'

in WP Core File wp-includes/class-wp-http.php at line 203

Description

Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.

Occurrences

Filename Line Number
wp-includes/class-wp-http.php 203

Parameters

Type Name Description
bool $pass_url Whether to pass URLs through wp_http_validate_url(). Default false.
string $url The request URL.

PHP Doc

/**
			 * Filters whether to pass URLs through wp_http_validate_url() in an HTTP request.
			 *
			 * @since 3.6.0
			 * @since 5.1.0 The `$url` parameter was added.
			 *
			 * @param bool   $pass_url Whether to pass URLs through wp_http_validate_url(). Default false.
			 * @param string $url      The request URL.
			 */