bbp_is_akismet_active

Checks if Akismet is enabled.

Description

bbp_is_akismet_active( (int) $default = 1 ); 

Parameters (1)

0. $default — Optional. (int) => 1
Bool Optional. Default value true

Usage

  1. if ( !function_exists( 'bbp_is_akismet_active' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // bool Optional. Default value true 
  5. $default = 1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_is_akismet_active($default); 
  9.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_is_akismet_active( $default = 1 ) { 
  2. return (bool) apply_filters( 'bbp_is_akismet_active', (bool) get_option( '_bbp_enable_akismet', $default ) );