bp_groups_current_group_class

  • apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-loader.php :: Trac Source Line: 96
      		parent::setup_globals( $globals );
      
      		/** Single Group Globals **********************************************/
      
      		// Are we viewing a single group?
      		if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) {
      
      			$bp->is_single_item  = true;
      			$current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' );
      			$this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) );
      
      			// When in a single group, the first action is bumped down one because of the
      			// group name, so we need to adjust this and set the group name to current_item.
      			$bp->current_item   = bp_current_action();
      			$bp->current_action = bp_action_variable( 0 );
      			array_shift( $bp->action_variables );
      
      			// Using "item" not "group" for generic support in other components.
      			if ( is_super_admin() )
      

Comments are closed.