bp_activity_make_nofollow_filter_callback( array $matches )
Add rel=nofollow to a link.
Description
Parameters
- $matches
-
(array) (Required) Items matched by preg_replace_callback() in bp_activity_make_nofollow_filter().
Return
(string) $text Link with rel=nofollow added.
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
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.