Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7179, comment 4


Ignore:
Timestamp:
08/25/2016 02:58:36 PM (3 years ago)
Author:
dcavins
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7179, comment 4

    initial v1  
    11This is an interesting addition, and something I would like to work on.
    22
    3 Before getting started, though, I have a question about how we'd store these new items. At the moment, member and group types refer to taxonomy terms behind the scenes, but are made active by being registered at load via code hooked to the `bp_groups_register_group_types` action.
     3Before getting started, though, I have a question about how we'd store these new items. At the moment, member and group types refer to taxonomy terms behind the scenes, but are made active by being registered at load via code hooked to the `bp_groups_register_group_types` action. ("Active" types are added to `buddypress()->groups->types`.)
    44
    55So, it'd be relatively straightforward to add a taxonomy-like interface to add/remove the actual types as terms, but what strategy do we want to take to register these new terms at load? Are we wanting to add them to a record in the options table (or similar), then add a query at load to see if there are any terms that need to be dynamically registered? Maybe we could use term meta for this, and identify the terms added via the interface as active (minimum supported WP version would have to be 4.4--we're at 4.2 now)?
    66
    77@r-a-y and @boonebgorges have worked extensively on types; do either of you have thoughts about how to work with the registration piece?
    8