bp_nouveau_get_group_meta ()

获取组元。

描述

返回

(数组)组元。

文件:bp-templates / bp-nouveau包括/团体/ template-tags.php

函数bp_nouveau_get_group_meta() {/* * @todo为了简洁起见,需要适当的标记作为字符串添加在这里*这需要是可过滤的,或者函数需要能够接受* &解析参数!*/ $meta = array();$ is_group = bp_is_group ();如果(!$group = $GLOBALS['groups_template']->group)) {$group = $GLOBALS['groups_template']->group;} if (empty($group->id)){返回$meta;} if (empty($group->template_meta)){//这是一个单独的组if ($is_group) {$meta = array('status' => bp_get_group_type(), //'group_type_list' => bp_get_group_type_list(), 'description' => bp_get_group_description(),);//确保包含钩元。$ extra_meta = bp_nouveau_get_hooked_group_meta ();If ($meta['extra'] = $ extr_meta) {$meta['extra'] = $ extr_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; }

更新日志

更新日志
版本 描述
BuddyPress 3.0.0 介绍了。

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队