bp_get_media_group_id()

Return the media group ID.

Description

Return

(int) The media group ID.

Source

File: bp-media/bp-media-template.php

754
755
756
757
758
759
760
761
762
763
764
765
function bp_get_media_group_id() {
    global $media_template;
 
    /**
     * Filters the media group ID being displayed.
     *
     * @since BuddyBoss 1.2.5
     *
     * @param int $id The media group ID.
     */
    return apply_filters( 'bp_get_media_group_id', $media_template->media->group_id );
}

Changelog

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