BP_Akismet::buddypress_ua( string $user_agent )

Filters user agent when sending to Akismet to add BuddyPress info.


Parameters Parameters

$user_agent

(string) (Required) User agent string, as generated by Akismet.


Top ↑

Return Return

(string) $user_agent Modified user agent string.


Source Source

File: bp-activity/classes/class-bp-akismet.php

	public function buddypress_ua( $user_agent ) {
		$user_agent = 'BuddyPress/' . bp_get_version() . ' | Akismet/'. constant( 'AKISMET_VERSION' );
		return $user_agent;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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