diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
index c2f6298f0..50b7b399d 100644
|
|
|
function bp_groups_register_group_type( $group_type, $args = array() ) { |
| 2806 | 2806 | function bp_groups_get_group_types( $args = array(), $output = 'names', $operator = 'and' ) { |
| 2807 | 2807 | $types = buddypress()->groups->types; |
| 2808 | 2808 | |
| 2809 | | $types = wp_filter_object_list( $types, $args, $operator ); |
| 2810 | | |
| 2811 | 2809 | // Merge with types available into the database. |
| 2812 | 2810 | if ( ! isset( $args['code'] ) || true !== $args['code'] ) { |
| 2813 | 2811 | $types = bp_get_taxonomy_types( bp_get_group_type_tax_name(), $types ); |
| 2814 | 2812 | } |
| 2815 | 2813 | |
| | 2814 | $types = wp_filter_object_list( $types, $args, $operator ); |
| | 2815 | |
| 2816 | 2816 | /** |
| 2817 | 2817 | * Filters the array of group type objects. |
| 2818 | 2818 | * |