bp_get_activity_slug()

Return the activity component slug.

Description

Return

(string) The activity component slug.

Source

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

	function bp_get_activity_slug() {

		/**
		 * Filters the activity component slug.
		 *
		 * @since BuddyPress 1.5.0
		 *
		 * @param string $slug Activity component slug.
		 */
		return apply_filters( 'bp_get_activity_slug', buddypress()->activity->slug );
	}

Changelog

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