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.
Source
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |