groups_template_group_home

  • apply_filters( 'groups_template_group_home', 'groups/single/home' ) )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-screens.php :: Trac Source Line: 99
      		if ( isset( $_GET['n'] ) ) {
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'membership_request_accepted' );
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'membership_request_rejected' );
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'member_promoted_to_mod'      );
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'member_promoted_to_admin'    );
      		}
      
      		do_action( 'groups_screen_group_home' );
      
      		bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      	}
      }
      
      /**
       * This screen function handles actions related to group forums
       *
       * @package BuddyPress
       */
      function groups_screen_group_forum() {
      	global $bp;
      
    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-actions.php :: Trac Source Line: 229
      		// User wants to join any group
      		if ( !groups_join_group( $bp->groups->current_group->id ) )
      			bp_core_add_message( __( 'There was an error joining the group.', 'buddypress' ), 'error' );
      		else
      			bp_core_add_message( __( 'You joined the group!', 'buddypress' ) );
      
      		bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) );
      	}
      
      	bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      }
      add_action( 'bp_actions', 'groups_action_join_group' );
      
      function groups_action_leave_group() {
      	global $bp;
      
      	if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( 'leave-group' ) )
      		return false;
      
    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-actions.php :: Trac Source Line: 254
      	if ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
      		if ( !groups_leave_group( $bp->groups->current_group->id ) ) {
      			bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' );
      		} else {
      			bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) );
      		}
      		bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) );
      	}
      
      	bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      }
      add_action( 'bp_actions', 'groups_action_leave_group' );
      
      function groups_action_sort_creation_steps() {
      	global $bp;
      
      	if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) )
      		return false;
      
    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-screens.php :: Trac Source Line: 454
      function groups_screen_group_activity_permalink() {
      	global $bp;
      
      	if ( !bp_is_groups_component() || !bp_is_active( 'activity' ) || ( bp_is_active( 'activity' ) && !bp_is_current_action( bp_get_activity_slug() ) ) || !bp_action_variable( 0 ) )
      		return false;
      
      	$bp->is_single_item = true;
      
      	bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      }
      add_action( 'bp_screens', 'groups_screen_group_activity_permalink' );
      
      function groups_screen_group_admin() {
      	if ( !bp_is_groups_component() || !bp_is_current_action( 'admin' ) )
      		return false;
      
      	if ( bp_action_variables() )
      		return false;
      
    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-classes.php :: Trac Source Line: 1266
      			// Catch the edit screen and forward it to the plugin template
      			if ( bp_is_groups_component() && bp_is_current_action( 'admin' ) && bp_is_action_variable( $this->slug, 0 ) ) {
      				// Check whether the user is saving changes
      				$this->edit_screen_save();
      
      				add_action( 'groups_custom_edit_steps', array( &$this, 'edit_screen' ) );
      
      				if ( '' != locate_template( array( 'groups/single/home.php' ), false ) ) {
      					bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      				} else {
      					add_action( 'bp_template_content_header', create_function( '', 'echo "<ul class="content-header-nav">"; bp_group_admin_tabs(); echo "</ul>";' ) );
      					add_action( 'bp_template_content', array( &$this, 'edit_screen' ) );
      					bp_core_load_template( apply_filters( 'bp_core_template_plugin', '/groups/single/plugins' ) );
      				}
      			}
      		}
      	}
      
      	function _display_hook() {
      

Comments are closed.