bp_get_media_parent_activity_id()

Return the media parent activity id.

Description

Return

(int) The media parent activity id.

Source

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

1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
function bp_get_media_parent_activity_id() {
    global $media_template;
 
    /**
     * Filters the media parent activity id.
     *
     * @since BuddyBoss 1.2.0
     *
     * @param int $id The media parent activity id.
     */
    return apply_filters( 'bp_get_media_privacy', get_post_meta( $media_template->media->attachment_id, 'bp_media_parent_activity_id', true ) );
}

Changelog

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