bbPress::register_theme_packages()
Register bundled theme packages
Description 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 Source
File: bbpress.php
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | public function register_theme_packages() { // Register the basic theme stack. This is really dope. bbp_register_template_stack( 'get_stylesheet_directory' , 6 ); bbp_register_template_stack( 'get_template_directory' , 8 ); // Register the default theme compatibility package bbp_register_theme_package( array ( 'id' => 'default' , 'name' => 'bbPress Default' , 'version' => bbp_get_version(), 'dir' => trailingslashit( $this ->themes_dir . 'default' ), 'url' => trailingslashit( $this ->themes_url . 'default' ) ) ); } |
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |