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:

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.

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