bp_get_theme_package_id( string $default = 'legacy' )
Get the current theme package ID.
Description Description
Parameters Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: 'legacy'.
Default value: 'legacy'
Return Return
(string) ID of the theme package.
Source Source
File: bp-core/bp-core-options.php
function bp_get_theme_package_id( $default = 'legacy' ) { /** * Filters the current theme package ID. * * @since 1.7.0 * * @param string $value The current theme package ID. */ return apply_filters( 'bp_get_theme_package_id', bp_get_option( '_bp_theme_package_id', $default ) ); }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |