wp_internal_hosts
wp_internal_hosts ( No parameters )
See:Returns:- (string[]) An array of URL hosts.
Defined at: - Introduced in WordPress: 6.2.0
- Deprecated in WordPress: —
Description
Returns an array of URL hosts which are considered to be internal hosts.By default the list of internal hosts is comprised of the host name of
the site's home_url() (as parsed by wp_parse_url()).
This list is used when determining if a specified URL is a link to a page on
the site itself or a link offsite (to an external host). This is used, for
example, when determining if the "nofollow" attribute should be applied to a
link.