apply_filters( ‘wp_internal_hosts’, string[] $internal_hosts )

In this article

Filters the array of URL hosts which are considered internal.

Parameters

$internal_hostsstring[]
An array of internal URL hostnames.

Source

$internal_hosts = apply_filters(
	'wp_internal_hosts',
	array(
		wp_parse_url( home_url(), PHP_URL_HOST ),
	)
);

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.