wp_targeted_link_rel

wp_targeted_link_rel

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_targeted_link_rel') is found 1 times:

  • /wp-includes/formatting.php line 3372
    	 *
    	 * @param string $rel       The rel values.
    	 * @param string $link_html The matched content of the link tag including all HTML attributes.
    	 */
    	$rel = apply_filters( 'wp_targeted_link_rel', 'noopener', $link_html );
    
    	// Return early if no rel values to be added or if no actual target attribute.
    	if ( ! $rel || ! isset( $atts['target'] ) ) {
    		return "<a $original_link_html>";
    	}