WordPress at a glance
filter is not described

http_request_reject_unsafe_urls filter-hook . WP 3.6.0

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

Usage

add_filter( 'http_request_reject_unsafe_urls', 'filter_function_name_9951', 10, 2 );
function filter_function_name_9951( $pass_url, $url ){
	// filter...

	return $pass_url;
}
$pass_url(true/false)
Whether to pass URLs through wp_http_validate_url().
Default: false
$url(string)
The request URL.

Notes

  • Since 5.1.0 The $url parameter was added.

Where the hook is called

WP_Http::request()
http_request_reject_unsafe_urls
wp-includes/class-http.php 201
'reject_unsafe_urls'  => apply_filters( 'http_request_reject_unsafe_urls', false, $url ),

Where the hook is used (in WP core)

Использование не найдено.