Core Function
View Source on Trac ↗ links_add_base_url()
links_add_base_url( mixed $content, mixed $base, mixed $attrs = array('src', 'href') ) Adds a base URL to relative links in passed content.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $content string | String to search for links in. Required |
| $base string | The base URL to prefix to links. Required |
| $attrs string[] | The attributes which should be processed. |
Return Value
(string)
The processed content.
Function Information
Since Version
2.7.0
Source File
wp-includes/formatting.php
Advertisement