bbp_is_update()

Compare the Forums version to the DB version to determine if updating

Description

Return

(bool) True if update, False if not

Source

File: bp-forums/core/update.php

function bbp_is_update() {
	$raw    = (int) bbp_get_db_version_raw();
	$cur    = (int) bbp_get_db_version();
	$retval = (bool) ( $raw < $cur );
	return $retval;
}

Changelog

Changelog
Version Description
bbPress (r3421) 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.