bp_disable_group_messages( bool $default = false )

Are group messages disabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if group message are disabled, otherwise false.

Source

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

function bp_disable_group_messages( $default = false ) {

	/**
	 * Filters whether or not group organizer and moderator allowed to send group message.
	 *
	 * @since BuddyBoss 1.2.3
	 *
	 * @param bool $value whether or not group organizer and moderator allowed to send group message.
	 */
	return (bool) apply_filters( 'bp_disable_group_messages', (bool) bp_get_option( 'bp-disable-group-messages', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.9 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.