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

Return Return

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

Source Source

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

function bp_activity_has_directory() {
	return isset( buddypress()->pages->activity->id ) && buddypress()->pages->activity->id;

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.