bp_groups_front_template_part()
Output the contents of the current group’s home page.
Description
You should only use this when on a single group page.
Source
File: bp-groups/bp-groups-template.php
function bp_groups_front_template_part() { $located = bp_groups_get_front_template(); if ( false !== $located ) { $slug = str_replace( '.php', '', $located ); /** * Let plugins adding an action to bp_get_template_part get it from here * * @param string $slug Template part slug requested. * @param string $name Template part name requested. */ do_action( 'get_template_part_' . $slug, $slug, false ); load_template( $located, true ); } else if ( bp_is_active( 'activity' ) ) { bp_get_template_part( 'groups/single/activity' ); } else if ( bp_is_active( 'members' ) ) { bp_groups_members_template_part(); } return $located; }
Changelog
Version | Description |
---|---|
BuddyPress 2.4.0 | 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.