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
5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 | 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.