bp_activity_make_nofollow_filter_callback( array $matches )
Adds rel="nofollow ugc"
to a link.
Description Description
Parameters Parameters
- $matches
-
(Required) Items matched by preg_replace_callback() in bp_activity_make_nofollow_filter().
Return Return
(string) $text Link with rel=nofollow added.
Source Source
File: bp-activity/bp-activity-filters.php
function bp_activity_make_nofollow_filter_callback( $matches ) { $text = $matches[1]; $text = str_replace( array( ' rel="nofollow"', " rel='nofollow'"), '', $text ); return "<a $text rel=\"nofollow\">"; }
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Adds the ugc rel attribute. |
1.2.0 | Introduced. |