bp_disable_blogforum_comments( bool $default = false )

Are post/comment activity feed comments disabled?

Description

Parameters

$default

(bool) (Optional) Fallback value if not found in the database. Default: false.

Default value: false

Return

(bool) True if activity comments are disabled for blog and forum items, otherwise false.

Source

File: bp-core/bp-core-options.php

function bp_disable_blogforum_comments( $default = false ) {

	/**
	 * Filters whether or not blog and forum activity feed comments are disabled.
	 *
	 * @since BuddyPress 1.6.0
	 *
	 * @param bool $value Whether or not blog and forum activity feed comments are disabled.
	 */
	return (bool) apply_filters( 'bp_disable_blogforum_comments', (bool) bp_get_option( 'bp-disable-blogforum-comments', $default ) );
}

Changelog

Changelog
Version Description
BuddyPress 1.6.0 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.