Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

#7496 closed enhancement (fixed)

Add 'slug' argument to BP_Groups_Group::get().

Reported by: dcavins's profile dcavins Owned by: dcavins's profile dcavins
Milestone: 2.9 Priority: normal
Severity: normal Version: 1.6
Component: Groups Keywords: has-patch
Cc:

Description

I'd like to add the ability to find groups by slug using groups_get_groups(). I'm planning on using this functionality to solve other problems, so have developed patches in other tickets. But it makes sense for a parameter change to have its own ticket for ease of finding it later.

Attached is the most recent version of the patch as originally developed to support work in #7477. This is ready to go in and has received useful feedback in #7477. I'll commit it later today.

Attachments (1)

7496.1.diff (6.3 KB) - added by dcavins 8 years ago.
Add 'slug' parameter to BP_Groups_Group::get().

Download all attachments as: .zip

Change History (3)

@dcavins
8 years ago

Add 'slug' parameter to BP_Groups_Group::get().

#1 @dcavins
8 years ago

  • Owner set to dcavins
  • Status changed from new to accepted

#2 @dcavins
8 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 11523:

Add 'slug' parameter to BP_Groups_Group::get().

Add $slug parameter to groups_get_groups() and its underlying
function BP_Groups_Group::get(). Find a group or groups by passing a
single slug, a comma- or space-separated list of slugs, or any array of
slugs.

Fixes #7496.

Note: See TracTickets for help on using tickets.