WPDev.one
Core Function
View Source on Trac ↗

wp_make_link_relative()

wp_make_link_relative( mixed $link )

Converts full URL paths to absolute paths.

Parameters 1 required

Name / Type Description
$link
string

Full URL path.

Required

Return Value

(string)
Absolute path.

Function Information

Since Version
2.1.0
Source File
wp-includes/formatting.php
Advertisement