bbp_setup_akismet

Loads Akismet inside the bbPress global class.

Description

bbp_setup_akismet(); 

Usage

  1. if ( !function_exists( 'bbp_setup_akismet' ) ) { 
  2. require_once '/includes/core/extend.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_setup_akismet(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/core/extend.php  
  1. function bbp_setup_akismet() { 
  2.  
  3. // Bail if no akismet 
  4. if ( !defined( 'AKISMET_VERSION' ) ) return; 
  5.  
  6. // Bail if Akismet is turned off 
  7. if ( !bbp_is_akismet_active() ) return; 
  8.  
  9. // Include the Akismet Component 
  10. require( bbpress()->includes_dir . 'extend/akismet.php' ); 
  11.  
  12. // Instantiate Akismet for bbPress 
  13. bbpress()->extend->akismet = new BBP_Akismet();