bp_get_activity_item_id()

Return the activity item ID.

Description

Return

(int) The activity item ID.

Source

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

713
714
715
716
717
718
719
720
721
722
723
724
function bp_get_activity_item_id() {
    global $activities_template;
 
    /**
     * Filters the activity item ID being displayed.
     *
     * @since BuddyPress 1.2.0
     *
     * @param int $item_id The activity item ID.
     */
    return apply_filters( 'bp_get_activity_item_id', $activities_template->activity->item_id );
}

Changelog

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