File: bp-forums/core/theme-compat.php |
Description |
---|---|
bbp_theme_compat_reset_post() |
This fun little function fills up some WordPress globals with dummy data to stop your average page template from complaining about it missing. |
bbp_template_include_theme_compat() |
Reset main query vars and filter ‘the_content’ to output a Forums template part as needed. |
bbp_template_include_theme_compat |
Bail if the template already matches a Forums template. This includes archive-* and single-* WordPress post_type matches (allowing themes to use the expected format) as well as all Forums-specific template files for users, topics, forums, etc. |
bbp_set_theme_compat_original_template() |
Set the theme compat original_template global |
bbp_is_theme_compat_original_template() |
Set the theme compat original_template global |
bbp_setup_theme_compat() |
Setup the default theme compat theme |
bbp_get_theme_compat_id() |
Gets the name of the Forums compatable theme used, in the event the currently active WordPress theme does not explicitly support Forums. |
bbp_get_theme_compat_name() |
Gets the name of the Forums compatable theme used, in the event the currently active WordPress theme does not explicitly support Forums. |
bbp_get_theme_compat_version() |
Gets the version of the Forums compatable theme used, in the event the currently active WordPress theme does not explicitly support Forums. |
bbp_get_theme_compat_dir() |
Gets the Forums compatable theme used in the event the currently active WordPress theme does not explicitly support Forums. This can be filtered, or set manually. Tricky theme authors can override the default and include their own Forums compatibility layers for their themes. |