apply_filters( '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.

Description

..

We do this after the above checks to prevent incorrect 404 body classes and header statuses, as well as to set the post global as needed.

See also

Source

File: bp-forums/core/theme-compat.php

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.