BP_Akismet::buddypress_ua( string $user_agent )
Filters user agent when sending to Akismet to add BuddyPress info.
Description
Parameters
- $user_agent
-
(string) (Required) User agent string, as generated by Akismet.
Return
(string) $user_agent Modified user agent string.
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; }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.