W3cubDocs

/WordPress

wp_rel_nofollow_callback( array $matches ): string

Callback to add rel="nofollow" string to HTML A element.

Parameters

$matchesarrayrequired
Single match.

Return

string HTML A Element with rel="nofollow".

Source

function wp_rel_nofollow_callback( $matches ) {
	return wp_rel_callback( $matches, 'nofollow' );
}

Changelog

Version Description
5.3.0 Use wp_rel_callback()
2.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_rel_nofollow_callback