bp_get_major_wp_version()

Parse the WordPress core version number into the major release.

Description

Return

(double) $wp_version

Source

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

function bp_get_major_wp_version() {
	global $wp_version;

	return (float) $wp_version;
}

Changelog

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