[ Index ] |
PHP Cross Reference of BBPress |
[Source view] [Print] [Project Stats]
bbPress Theme Compatibility
File Size: | 1060 lines (31 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
BBP_Theme_Compat:: (25 methods):
__construct()
__set()
__get()
get_dir()
bbp_setup_theme_compat()
bbp_get_current_template_pack()
bbp_get_theme_compat_id()
bbp_get_theme_compat_name()
bbp_get_theme_compat_version()
bbp_get_theme_compat_dir()
bbp_get_theme_compat_url()
bbp_is_theme_compat_active()
bbp_set_theme_compat_active()
bbp_set_theme_compat_templates()
bbp_set_theme_compat_template()
bbp_set_theme_compat_original_template()
bbp_is_theme_compat_original_template()
bbp_register_theme_package()
bbp_theme_compat_reset_post()
bbp_template_include_theme_compat()
bbp_redirect_canonical()
bbp_remove_all_filters()
bbp_restore_all_filters()
bbp_force_comment_status()
bbp_remove_adjacent_posts()
Class: BBP_Theme_Compat - X-Ref
Theme Compatibility base class__construct( array $properties = array() X-Ref |
Pass the $properties to the object on creation. param: array $properties since: 2.1.0 bbPress (r3926) |
__set( $property, $value ) X-Ref |
Set a theme's property. param: string $property param: mixed $value return: mixed since: 2.1.0 bbPress (r3926) |
__get( $property ) X-Ref |
Get a theme's property. param: string $property param: mixed $value return: mixed since: 2.1.0 bbPress (r3926) |
get_dir() X-Ref |
Return the template directory. return: string since: 2.6.0 bbPress (r6548) |
bbp_setup_theme_compat( $theme = 'default' ) X-Ref |
Setup the active template pack and register it's directory in the stack. param: BBP_Theme_Compat $theme since: 2.0.0 bbPress (r3311) |
bbp_get_current_template_pack() X-Ref |
Get the current template pack package. return: BBP_Theme_Compat since: 2.6.0 bbPress (r6548) |
bbp_get_theme_compat_id() X-Ref |
Gets the id of the bbPress compatible theme used, in the event the currently active WordPress theme does not explicitly support bbPress. This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes. return: string since: 2.0.0 bbPress (r3506) |
bbp_get_theme_compat_name() X-Ref |
Gets the name of the bbPress compatible theme used, in the event the currently active WordPress theme does not explicitly support bbPress. This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes. return: string since: 2.0.0 bbPress (r3506) |
bbp_get_theme_compat_version() X-Ref |
Gets the version of the bbPress compatible theme used, in the event the currently active WordPress theme does not explicitly support bbPress. This can be filtered or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes. return: string since: 2.0.0 bbPress (r3506) |
bbp_get_theme_compat_dir() X-Ref |
Gets the bbPress compatible theme used in the event the currently active WordPress theme does not explicitly support bbPress. This can be filtered, or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes. return: string since: 2.0.0 bbPress (r3032) |
bbp_get_theme_compat_url() X-Ref |
Gets the bbPress compatible theme used in the event the currently active WordPress theme does not explicitly support bbPress. This can be filtered, or set manually. Tricky theme authors can override the default and include their own bbPress compatibility layers for their themes. return: string since: 2.0.0 bbPress (r3032) |
bbp_is_theme_compat_active() X-Ref |
Gets true/false if page is currently inside theme compatibility return: bool since: 2.0.0 bbPress (r3265) |
bbp_set_theme_compat_active( $set = true ) X-Ref |
Sets true/false if page is currently inside theme compatibility param: bool $set return: bool since: 2.0.0 bbPress (r3265) |
bbp_set_theme_compat_templates( $templates = array() X-Ref |
Set the theme compat templates global Stash possible template files for the current query. Useful if plugins want to override them, or see what files are being scanned for inclusion. since: 2.0.0 bbPress (r3311) |
bbp_set_theme_compat_template( $template = '' ) X-Ref |
Set the theme compat template global Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included. since: 2.0.0 bbPress (r3311) |
bbp_set_theme_compat_original_template( $template = '' ) X-Ref |
Set the theme compat original_template global Stash the original template file for the current query. Useful for checking if bbPress was able to find a more appropriate template. since: 2.1.0 bbPress (r3926) |
bbp_is_theme_compat_original_template( $template = '' ) X-Ref |
Is a template the original_template global Stash the original template file for the current query. Useful for checking if bbPress was able to find a more appropriate template. since: 2.1.0 bbPress (r3926) |
bbp_register_theme_package( $theme = array() X-Ref |
Register a new bbPress theme package to the active theme packages array param: array $theme since: 2.1.0 bbPress (r3829) |
bbp_theme_compat_reset_post( $args = array() X-Ref |
This fun little function fills up some WordPress globals with dummy data to stop your average page template from complaining about it missing. param: array $args since: 2.0.0 bbPress (r3108) |
bbp_template_include_theme_compat( $template = '' ) X-Ref |
Reset main query vars and filter 'the_content' to output a bbPress template part as needed. param: string $template since: 2.0.0 bbPress (r3032) |
bbp_redirect_canonical( $redirect_url ) X-Ref |
Remove the canonical redirect to allow pretty pagination param: string $redirect_url Redirect url return: bool|string False if it's a topic/forum and their first page, since: 2.0.0 bbPress (r2628) |
bbp_remove_all_filters( $tag, $priority = false ) X-Ref |
Removes all filters from a WordPress filter, and stashes them in the $bbp global in the event they need to be restored later. param: string $tag param: int $priority return: bool since: 2.0.0 bbPress (r3251) |
bbp_restore_all_filters( $tag, $priority = false ) X-Ref |
Restores filters from the $bbp global that were removed using bbp_remove_all_filters() param: string $tag param: int $priority return: bool since: 2.0.0 bbPress (r3251) |
bbp_force_comment_status( $open = false, $post_id = 0 ) X-Ref |
Force comments_status to 'closed' for bbPress post types param: bool $open True if open, false if closed param: int $post_id ID of the post to check return: bool True if open, false if closed since: 2.1.0 bbPress (r3589) |
bbp_remove_adjacent_posts() X-Ref |
Remove "prev" and "next" relational links from <head> on bbPress pages. WordPress automatically generates these relational links to the current page, but bbPress does not use these links, nor would they work the same. In this function, we remove these links when on a bbPress page. This also prevents additional, unnecessary queries from running. since: 2.6.0 bbPress (r7071) |
Generated: Sun Mar 9 01:00:55 2025 | Cross-referenced by PHPXref 0.7.1 |