bp_get_activity_type()

Return the activity type.

Description

Return

(string) The activity type.

Source

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

872
873
874
875
876
877
878
879
880
881
882
883
function bp_get_activity_type() {
    global $activities_template;
 
    /**
     * Filters the activity type.
     *
     * @since BuddyPress 1.2.0
     *
     * @param string $activity_type The activity type.
     */
    return apply_filters( 'bp_get_activity_type', $activities_template->activity->type );
}

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.