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

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.