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: ''
Return Return
(string) $text Text with rel=nofollow added to any links
Source Source
File: includes/common/formatting.php
function bbp_rel_nofollow( $text = '' ) { return preg_replace_callback( '|<a (.+?)>|i', 'bbp_rel_nofollow_callback', $text ); }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |