bp_get_group_type (对象| bool美元集团

获取循环中当前组的类型。

描述

参数

美元集团

对象|保龄球(可选)组对象。默认值:循环中的当前组。

默认值:假

返回

(字符串)

文件:bp-groups / bp-groups-template.php

函数bp_get_group_type($group = false) {global $ group_template;If (empty($group)) {$group =& $ group_template ->group;} if (true === bp_disable_group_type_creation()) {$group_type = bp_group_get_group_type ($group->id);$group_type = bp_group_get_group_type_object ($group_type);$group_type = isset($group_type->labels['singular_name']) ?group_type - >标签[' singular_name ']:”;if ('public' == $group->status) {$group_visibility = __('public', 'buddyboss');$type = !empty($group_type) ?' < span class = " group-visibility公众”>“group_visibility美元。' / '.$group_type。'/ '.__( "Group", 'buddyboss' ).''; } elseif ( 'hidden' == $group->status ) { $group_visibility = __( 'Hidden', 'buddyboss' ); $type = !empty( $group_type ) ? ' / '.$group_type.'' : '

更新日志

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

问题吗?

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