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.
- (string[]) attrs The attributes which should be processed.
Returns:- (string) The processed content.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Adds a base URL to relative links in passed content.By default, this function supports the 'src' and 'href' attributes.
However, this can be modified via the `$attrs` parameter.