bp_blogs_has_directory()

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

Description

Return

(bool) True if set, false if empty.

Source

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

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

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