bbp_rel_nofollow( string $text = '' )

Catches links so rel=nofollow can be added (on output, not save)


Description Description


Parameters Parameters

$text

(Optional) Post text

Default value: ''


Top ↑

Return Return

(string) $text Text with rel=nofollow added to any links


Top ↑

Source Source

File: includes/common/formatting.php

function bbp_rel_nofollow( $text = '' ) {
	return preg_replace_callback( '|<a (.+?)>|i', 'bbp_rel_nofollow_callback', $text );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.