bp_get_theme_compat_version()
Get the version of the theme package being used.
Description Description
This can be filtered or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.
Return Return
(string) The version string of the theme package currently in use.
Source Source
File: bp-core/bp-core-theme-compatibility.php
function bp_get_theme_compat_version() { /** * Filters the version of the theme package being used. * * @since 1.7.0 * * @param string $version The version string of the theme package in use. */ return apply_filters( 'bp_get_theme_compat_version', buddypress()->theme_compat->theme->version ); }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |