bp_disable_blogforum_comments( bool $default = false )
Are post/comment activity stream comments disabled?
Description Description
Parameters Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: false.
Default value: false
Return Return
(bool) True if activity comments are disabled for blog and forum items, otherwise false.
Source Source
File: bp-core/bp-core-options.php
function bp_disable_blogforum_comments( $default = false ) {
/**
* Filters whether or not blog and forum activity stream comments are disabled.
*
* @since 1.6.0
*
* @param bool $value Whether or not blog and forum activity stream comments are disabled.
*/
return (bool) apply_filters( 'bp_disable_blogforum_comments', (bool) bp_get_option( 'bp-disable-blogforum-comments', $default ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |