Example #1
0
/**
 * Get the templates to use as the endpoint for bbPress template parts
 *
 * @since bbPress (r3311)
 *
 * @uses apply_filters()
 * @uses bbp_set_theme_compat_templates()
 * @uses bbp_get_query_template()
 * @return string Path to template file
 */
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);
}
Example #2
0
function bbp_get_topic_write_template()
{
    $templates = array('single-' . bbp_get_topic_post_type() . '-write.php');
    return bbp_get_query_template('topic_write', $templates);
}