bp_activity_make_nofollow_filter( string $text )
Catch links in activity text so rel=nofollow can be added.
Description Description
Parameters Parameters
- $text
-
(Required) Activity text.
Return Return
(string) $text Text with rel=nofollow added to any links.
Source Source
File: bp-activity/bp-activity-filters.php
function bp_activity_make_nofollow_filter( $text ) { return preg_replace_callback( '|<a (.+?)>|i', 'bp_activity_make_nofollow_filter_callback', $text ); }
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |