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().


Top ↑

Return Return

(string) $text Link with rel=nofollow added.


Top ↑

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\">";
	}

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Adds the ugc rel attribute.
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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