WPDev.one
Core Function
View Source on Trac ↗

wp_targeted_link_rel_callback()

wp_targeted_link_rel_callback( mixed $matches )

Callback to add `rel="noopener"` string to HTML A element.

Parameters 1 required

Name / Type Description
$matches
array

Single match.

Required

Return Value

(string)
HTML A Element with `rel="noopener"` in addition to any existing values.

Function Information

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