bp_activity_setup_akismet()
Loads Akismet filtering for activity.
Description
Source
File: bp-activity/bp-activity-akismet.php
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | function bp_activity_setup_akismet() { /** * Filters if BuddyBoss Activity Akismet support has been disabled by another plugin. * * @since BuddyPress 1.6.0 * * @param bool $value Return value of bp_is_akismet_active boolean function. */ if ( ! apply_filters( 'bp_activity_use_akismet' , bp_is_akismet_active() ) ) { return ; } // Instantiate Akismet for BuddyPress. buddypress()->activity->akismet = new BP_Akismet(); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.3.0 We only support Akismet 3+. | BuddyPress 2.3.0 We only support Akismet 3+. |
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.