bp_get_activity_type()
Return the activity type.
Description Description
Return Return
(string) The activity type.
Source Source
File: bp-activity/bp-activity-template.php
function bp_get_activity_type() {
global $activities_template;
/**
* Filters the activity type.
*
* @since 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 |
|---|---|
| 1.2.0 | Introduced. |