wp_targeted_link_rel WordPress Filter Hook

The wp_targeted_link_rel hook allows you to add a rel="nofollow" attribute to any links that you specify. This is useful for preventing search engines from following certain links, or for preventing certain links from passing link juice.

apply_filters( 'wp_targeted_link_rel', string $rel, string $link_html ) #

Filters the rel values that are added to links with target attribute.


Parameters

$rel

(string)The rel values.

$link_html

(string)The matched content of the link tag including all HTML attributes.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More