WPDev.one
Core Function
View Source on Trac ↗

wp_is_internal_link()

wp_is_internal_link( mixed $link )

Determines whether or not the specified URL is of a host included in the internal hosts list.

Parameters 1 required

Name / Type Description
$link
string

The URL to test.

Required

Return Value

(bool)
Returns true for internal URLs and false for all other URLs.

Function Information

Since Version
6.2.0
Source File
wp-includes/link-template.php
Advertisement