bp_disable_group_messages( bool $default = false )

Are group messages disabled?

Description

Parameters

$default

(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

1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
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.