bp_get_album_id()

Return the album ID.

Description

Return

(int) The media album ID.

Source

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

1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
function bp_get_album_id() {
    global $media_album_template;
 
    /**
     * Filters the media ID being displayed.
     *
     * @since BuddyBoss 1.0.0
     *
     * @param int $id The media album ID.
     */
    return apply_filters( 'bp_get_album_id', $media_album_template->album->id );
}

Changelog

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