bp_get_media_attachment_id()

Return the media attachment ID.

Description

Return

(int) The media attachment ID.

Source

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

593
594
595
596
597
598
599
600
601
602
603
604
function bp_get_media_attachment_id() {
    global $media_template;
 
    /**
     * Filters the media ID being displayed.
     *
     * @since BuddyBoss 1.0.0
     *
     * @param int $id The media attachment ID.
     */
    return apply_filters( 'bp_get_media_attachment_id', $media_template->media->attachment_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.