bp_get_theme_compat_id()
Get the ID of the theme package being used.
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
(string) ID of the theme package in use.
Source
File: bp-core/bp-core-theme-compatibility.php
55 56 57 58 59 60 61 62 63 64 65 | function bp_get_theme_compat_id() { /** * Filters the ID of the theme package being used. * * @since BuddyPress 1.7.0 * * @param string $id ID of the theme package in use. */ return apply_filters( 'bp_get_theme_compat_id' , buddypress()->theme_compat->theme->id ); } |
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.