wp_is_internal_link
wp_is_internal_link ( $link )
Parameters:- (string) link The URL to test.
See:Returns:- (bool) Returns true for internal URLs and false for all other URLs.
Defined at: - Introduced in WordPress: 6.2.0
- Deprecated in WordPress: —
Description
Determines whether or not the specified URL is of a host included in the internal hosts list.