groups_template_group_admin
Filters the template to load for a group's admin/edit-details page.
Description
Parameters (1)
- 0. $groups_single_home (string) =>
'groups/single/home'
- Path to a group's admin/edit-details template.
Usage
- To run the hook, copy the example below.
- $groups_single_home = apply_filters( 'groups_template_group_admin', $groups_single_home );
- if ( !empty( $groups_single_home ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the groups_template_group_admin callback
- function filter_groups_template_group_admin( $groups_single_home ) {
- // make filter magic happen here...
- return $groups_single_home;
- };
- // add the filter
- add_filter( 'groups_template_group_admin', 'filter_groups_template_group_admin', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'groups_template_group_admin', 'filter_groups_template_group_admin', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-screens.php
- bp_core_load_template( apply_filters( 'groups_template_group_admin', 'groups/single/home' ) );