wp_targeted_link_rel_callback


wp_targeted_link_rel_callback ( $matches )

Parameters:
  • (array) matches Single match.
Returns:
  • (string) HTML A Element with `rel="noopener"` in addition to any existing values.
Defined at:
Change Log:
  • 5: .

Description

Callback to add `rel="noopener"` string to HTML A element.Will not duplicate an existing 'noopener' value to avoid invalidating the HTML.

Related Functions

wp_targeted_link_rel, wp_init_targeted_link_rel_filters, _get_plugin_from_callback, wp_remove_targeted_link_rel_filters, wp_rel_callback

Top Google Results

User discussions

wpseek mobile