groups_screen_group_messages()

Handle the display of a group’s Group Messages page.

Description

Source

File: bp-groups/screens/single/messages.php

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function groups_screen_group_messages() {
 
    if ( ! bp_is_single_item() || ! bp_disable_group_messages() ) {
        return false;
    }
 
    /**
     * Fires after the sending of a group message inside the group's Group Message page.
     *
     * @since BuddyBoss 1.2.9
     *
     * @param int $id ID of the group whose members are being displayed.
     */
    do_action( 'groups_screen_group_messages' );
 
    /**
     * Filters the template to load for a single group's message page.
     *
     * @since BuddyBoss 1.2.9
     *
     * @param string $value Path to a single group's template to load.
     */
    bp_core_load_template( apply_filters( 'groups_template_group_messages', 'groups/single/home' ) );
}

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.