xprofile_groups_deleted_group

  • do_action( 'xprofile_groups_deleted_group', $group )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-admin.php :: Trac Source Line: 250
      	$group = new BP_XProfile_Group( $group_id );
      
      	if ( !$group->delete() ) {
      		$message = __( 'There was an error deleting the group. Please try again', 'buddypress' );
      		$type    = 'error';
      	} else {
      		$message = __( 'The group was deleted successfully.', 'buddypress' );
      		$type    = 'success';
      
      		do_action( 'xprofile_groups_deleted_group', $group );
      	}
      
      	unset( $_GET['mode'] );
      	xprofile_admin( $message, $type );
      }
      
      /**************************************************************************
       xprofile_admin_manage_field()
      

Hook: add_action: xprofile_groups_deleted_group instances (1)

  • add_action( 'xprofile_groups_deleted_group', 'xprofile_clear_profile_groups_object_cache' )
    $function_to_add: xprofile_clear_profile_groups_object_cache
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-cache.php :: Trac Source Line: 23
      	wp_cache_delete( 'xprofile_group_' . $group_obj->id );
      }
      
      function xprofile_clear_profile_data_object_cache( $group_id ) {
      	global $bp;
      	wp_cache_delete( 'bp_user_fullname_' . $bp->loggedin_user->id, 'bp' );
      }
      

Comments are closed.