wp_make_link_relative
wp_make_link_relative ( $link )
Parameters:- (string) link Full URL path.
Returns:Defined at:Change Log: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Converts full URL paths to absolute paths.Removes the http or https protocols and the domain. Keeps the path '/' at the
beginning, so it isn't a true relative link, but from the web root base.