Changes between Initial Version and Version 1 of Ticket #7179, comment 4
- Timestamp:
- 08/25/2016 02:58:36 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7179, comment 4
initial v1 1 1 This is an interesting addition, and something I would like to work on. 2 2 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. 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. ("Active" types are added to `buddypress()->groups->types`.) 4 4 5 5 So, 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)? 6 6 7 7 @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