Changeset 13312 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 08/13/2022 08:21:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r13309 r13312 2970 2970 } 2971 2971 2972 $types = wp_filter_object_list( $types, $args, $operator);2972 $types = array_filter( wp_filter_object_list( $types, $args, $operator ) ); 2973 2973 2974 2974 /** … … 2984 2984 * @param string $operator 'or' to match any of $args, 'and' to require all. 2985 2985 */ 2986 $types = apply_filters( 'bp_groups_get_group_types', $types, $args, $operator );2987 2988 if ( 'names' === $output ) {2986 $types = (array) apply_filters( 'bp_groups_get_group_types', $types, $args, $operator ); 2987 2988 if ( $types && 'names' === $output ) { 2989 2989 $types = wp_list_pluck( $types, 'name' ); 2990 2990 }
Note: See TracChangeset
for help on using the changeset viewer.