groups_setup_nav

Fires at the end of the groups navigation setup if user has access.

Description

do_action( 'groups_setup_nav', (bool) $this_current_group_user_has_access ); 

Parameters (1)

0. $this_current_group_user_has_access (bool)
The this current group user has access.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'groups_setup_nav', $this_current_group_user_has_access ); 
The following example is for adding a hook callback.
  1. // define the groups_setup_nav callback 
  2. function action_groups_setup_nav( $this_current_group_user_has_access ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'groups_setup_nav', 'action_groups_setup_nav', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'groups_setup_nav', 'action_groups_setup_nav', 10, 1 ); 

Defined (2)

The action is defined in the following location(s).

/bp-groups/classes/class-bp-groups-component.php  
  1. do_action( 'groups_setup_nav', $this->current_group->user_has_access ); 
  1. do_action( 'groups_setup_nav');