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:

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.

Related Functions

_links_add_base, links_add_target, _links_add_target, iis7_add_rewrite_rule, plugin_dir_url

Top Google Results

User discussions

wpseek mobile