groups_template_directory_groups

  • apply_filters( 'groups_template_directory_groups', 'groups/index' ) )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-screens.php :: Trac Source Line: 19
      // Exit if accessed directly
      if ( !defined( 'ABSPATH' ) ) exit;
      
      function groups_directory_groups_setup() {
      	if ( bp_is_groups_component() && !bp_current_action() && !bp_current_item() ) {
      		bp_update_is_directory( true, 'groups' );
      
      		do_action( 'groups_directory_groups_setup' );
      
      		bp_core_load_template( apply_filters( 'groups_template_directory_groups', 'groups/index' ) );
      	}
      }
      add_action( 'bp_screens', 'groups_directory_groups_setup', 2 );
      
      function groups_screen_my_groups() {
      	global $bp;
      
      	// Delete group request notifications for the user
      	if ( isset( $_GET['n'] ) ) {
      		bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'membership_request_accepted' );
      

Comments are closed.