bp_get_activity_object_name()

Return the activity object name.

Description

Return

(string) The activity object name.

Source

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

841
842
843
844
845
846
847
848
849
850
851
852
function bp_get_activity_object_name() {
    global $activities_template;
 
    /**
     * Filters the activity object name.
     *
     * @since BuddyPress 1.2.0
     *
     * @param string $activity_component The activity object name.
     */
    return apply_filters( 'bp_get_activity_object_name', $activities_template->activity->component );
}

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.