bp_activity_has_directory()

Check whether the $bp global lists an activity directory page.

Description

Return

(bool) True if activity directory page is found, otherwise false.

Source

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

function bp_activity_has_directory() {
	return (bool) !empty( buddypress()->pages->activity->id );
}

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.