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.


Top ↑

Return Return

(string) $text Text with rel=nofollow added to any links.


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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