WPDev.one
Core Function
View Source on Trac ↗

wp_targeted_link_rel()

wp_targeted_link_rel( mixed $text )

Adds `rel="noopener"` to all HTML A elements that have a target.

Parameters 1 required

Name / Type Description
$text
string

Content that may contain HTML A elements.

Required

Return Value

(string)
Converted content.

Function Information

Since Version
5.1.0
Source File
wp-includes/formatting.php
Advertisement