bp_is_akismet_active( bool $default = true )
Check whether Akismet is enabled.
Description Description
Parameters Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return Return
(bool) True if Akismet is enabled, otherwise false.
Source Source
File: bp-core/bp-core-options.php
function bp_is_akismet_active( $default = true ) {
/**
* Filters whether or not Akismet is enabled.
*
* @since 1.6.0
*
* @param bool $value Whether or not Akismet is enabled.
*/
return (bool) apply_filters( 'bp_is_akismet_active', (bool) bp_get_option( '_bp_enable_akismet', $default ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |