bp_blogs_has_directory()

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


Return Return

(bool) True if set, false if empty.


Source Source

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

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

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