[buddypress-trac] [BuddyPress Trac] #7138: bp_groups_register_group_types() should fire on `'bp_init'`
buddypress-trac
noreply at wordpress.org
Tue Jun 28 04:29:50 UTC 2016
#7138: bp_groups_register_group_types() should fire on `'bp_init'`
--------------------------+--------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.6.1
Component: Groups | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by r-a-y):
I took a look at the member types ticket and ticket:6286#comment:9 goes
into a few specifics:
> I've introduced the 'bp_register_member_type' hook. Member types must be
registered here (instead of 'bp_init') in order to exist early enough to
be detected during bp_core_set_uri_globals().
So it's the same as what we're talking about above.
`2-7.patch` is an idea for BP 2.7 to move post type and taxonomy
registration above `bp_core_set_uri_globals()` and then we use
`'bp_register_taxonomies'` for group and member type registration.
For 2.6.1, let's go with `02.patch`, which moves the hook to `'bp_init'`
at priority 1.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7138#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list