bp_groups_has_directory()

Check whether there is a Groups directory page in the $bp global.


Description Description


Return Return

(bool) True if set, False if empty.


Top ↑

Source Source

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

function bp_groups_has_directory() {
	$bp = buddypress();

	return (bool) !empty( $bp->pages->groups->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.