groups_directory_groups_setup()
Handle the display of the Groups directory index.
Description
Source
File: bp-groups/screens/directory.php
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | function groups_directory_groups_setup() { if ( bp_is_groups_directory() ) { bp_update_is_directory( true, 'groups' ); /** * Fires before the loading of the Groups directory index. * * @since BuddyPress 1.1.0 */ do_action( 'groups_directory_groups_setup' ); /** * Filters the template to load for the Groups directory index. * * @since BuddyPress 1.0.0 * * @param string $value Path to the groups directory index template to load. */ bp_core_load_template( apply_filters( 'groups_template_directory_groups' , 'groups/index' ) ); } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.