wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



allowed_http_request_hosts › WordPress Function

Seit3.6.0
Veraltetn/v
allowed_http_request_hosts ( $is_external, $host )
Parameter: (2)
  • (bool) $is_external
    Erforderlich: Ja
  • (string) $host
    Erforderlich: Ja
Gibt zurück:
  • (bool)
Definiert in:
Codex:

Mark allowed redirect hosts safe for HTTP requests as well.

Attached to the {@see 'http_request_host_is_external'} filter.


Quellcode

function allowed_http_request_hosts( $is_external, $host ) {
	if ( ! $is_external && wp_validate_redirect( 'http://' . $host ) ) {
		$is_external = true;
	}
	return $is_external;
}