bp_is_install()

Is this a fresh installation of BuddyPress?

Description

If there is no raw DB version, we infer that this is the first installation.

Return

(bool) True if this is a fresh BP install, otherwise false.

Source

File: bp-core/bp-core-update.php

function bp_is_install() {
	return ! bp_get_db_version_raw();
}

Changelog

Changelog
Version Description
BuddyPress 1.7.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.