wp_targeted_link_rel


wp_targeted_link_rel ( $text )

Parameters:
  • (string) text Content that may contain HTML A elements.
Returns:
  • (string) Converted content.
Defined at:
Change Log:
  • 5: .

Description

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

Related Functions

wp_targeted_link_rel_callback, wp_init_targeted_link_rel_filters, wp_remove_targeted_link_rel_filters, wp_get_links, wp_make_link_relative

Top Google Results

User discussions

wpseek mobile