bbp_setup_akismet()
Loads Akismet inside the Forums global class
Description
Return
(If) Forums is not active
Source
File: bp-forums/core/extend.php
function bbp_setup_akismet() {
// Bail if no akismet
if ( !defined( 'AKISMET_VERSION' ) ) return;
// Bail if Akismet is turned off
if ( !bbp_is_akismet_active() ) return;
// Include the Akismet Component
require( bbpress()->includes_dir . 'extend/akismet.php' );
// Instantiate Akismet for Forums
bbpress()->extend->akismet = new BBP_Akismet();
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3277) | 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.