groups_get_group
Filters a single group object.
Description
Parameters (1)
- 0. $group (BP_Groups_Group)
- Single group object.
Usage
- To run the hook, copy the example below.
- $group = apply_filters( 'groups_get_group', $group );
- if ( !empty( $group ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the groups_get_group callback
- function filter_groups_get_group( $group ) {
- // make filter magic happen here...
- return $group;
- };
- // add the filter
- add_filter( 'groups_get_group', 'filter_groups_get_group', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'groups_get_group', 'filter_groups_get_group', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-functions.php
- return apply_filters( 'groups_get_group', $group );