bbp_setup_akismet()

Loads Akismet inside the Forums global class

Description

Return

(If) Forums is not active

Source

File: bp-forums/core/extend.php

22
23
24
25
26
27
28
29
30
31
32
33
34
35
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

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.