[buddypress-trac] [BuddyPress Trac] #7138: bp_groups_register_group_types() should fire on `'bp_init'`

buddypress-trac noreply at wordpress.org
Thu Jun 23 16:31:11 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        |   Keywords:  has-patch
--------------------------+-----------------------
 See:
 https://buddypress.org/support/topic/bp_groups_get_group_types-return-
 empty-array/#post-255085

 The user is trying to register group types by pasting the example code
 from the codex into the theme's `functions.php`.

 The problem is the code doesn't work in the theme's `functions.php`, but
 works in `bp-custom.php`.

 This can be fixed by switching `bp_groups_register_group_types()` to run
 on `'bp_register_taxonomies'` instead of `'bp_loaded'`.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7138>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list