bp_activity_has_directory()

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


Description Description


Return Return

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


Top ↑

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

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.