bp_nouveau_get_group_meta()
Get the group meta.
Description
Return
(array) The group meta.
Source
File: bp-templates/bp-nouveau/includes/groups/template-tags.php
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 | function bp_nouveau_get_group_meta() { /* * @todo For brevity required approapriate markup is added here as strings * this needs to be either filterable or the function needs to be able to accept * & parse args! */ $meta = array (); $is_group = bp_is_group(); if ( ! empty ( $GLOBALS [ 'groups_template' ]->group ) ) { $group = $GLOBALS [ 'groups_template' ]->group; } if ( empty ( $group ->id ) ) { return $meta ; } if ( empty ( $group ->template_meta ) ) { // It's a single group if ( $is_group ) { $meta = array ( 'status' => bp_get_group_type(), //'group_type_list' => bp_get_group_type_list(), 'description' => bp_get_group_description(), ); // Make sure to include hooked meta. $extra_meta = bp_nouveau_get_hooked_group_meta(); if ( $extra_meta ) { $meta [ 'extra' ] = $extra_meta ; } // We're in the groups loop } else { $meta = array ( 'status' => bp_get_group_type(), 'count' => bp_get_group_member_count(), ); } /** * Filter to add/remove Group meta. * * @since BuddyPress 3.0.0 * * @param array $meta The list of meta to output. * @param object $group The current Group of the loop object. * @param bool $is_group True if a single group is displayed. False otherwise. */ $group ->template_meta = apply_filters( 'bp_nouveau_get_group_meta' , $meta , $group , $is_group ); } return $group ->template_meta; } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.