bbp_get_theme_compat_templates()

Get the templates to use as the endpoint for Forums template parts

Description

Return

(string) Path to template file

Source

File: bp-forums/core/template-loader.php

517
518
519
520
521
522
523
524
525
526
527
528
529
function bbp_get_theme_compat_templates() {
    $templates = array(
        'plugin-bbpress.php',
        'bbpress.php',
        'forums.php',
        'forum.php',
        'generic.php',
        'page.php',
        'single.php',
        'index.php'
    );
    return bbp_get_query_template( 'bbpress', $templates );
}

Changelog

Changelog
Version Description
bbPress (r3311) 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.