bbPress::register_theme_packages()
Register bundled theme packages
Description
Note that since we currently have complete control over bbp-themes and the bbp-theme-compat folders, it’s fine to hardcode these here. If at a later date we need to automate this, and API will need to be built.
Source
File: bp-forums/classes/class-bbpress.php
public function register_theme_packages() {
// Register the default theme compatibility package
bbp_register_theme_package( array(
'id' => 'default',
'name' => __( 'Forums Default', 'buddyboss' ),
'version' => bbp_get_version(),
'dir' => trailingslashit( $this->themes_dir . 'default' ),
'url' => trailingslashit( $this->themes_url . 'default' )
) );
// Register the basic theme stack. This is really dope.
bbp_register_template_stack( 'get_stylesheet_directory', 10 );
bbp_register_template_stack( 'get_template_directory', 12 );
bbp_register_template_stack( 'bbp_get_theme_compat_dir', 14 );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3829) | 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.