Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

links_add_target()

3 tags 1 category

links_add_target() — Adds a target attribute to all links in passed content. By default, this function only applies to <a> tags. However, this can be modified via the $tags parameter. NOTE:* Any current target attribute will be stripped and replaced.

Inputs: $content (string): String to search for links in. $target (string): The target to add to the links. $tags (string[]): An array of tags to apply to.

Returns string: The processed content.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…