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
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.