links_add_base_url
links_add_base_url ( $content, $base, $attrs = array('src', 'href') )
Parameters:- (string) content String to search for links in.
- (string) base The base URL to prefix to links.
- (array) attrs The attributes which should be processed.
Returns:- (string) The processed content.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Add a Base url to relative links in passed content.By default it supports the 'src' and 'href' attributes. However this can be
changed via the 3rd param.