bbp_get_forum_thumbnail_image (forum_id美元=零,美元的大小=零,美元的类型=零)
获得论坛缩略图的图像标签
描述
源
Function bbp_get_forum_thumbnail_image($forum_id = null, $size = null, $type = null) {if ($thumbnail_id = get_post_thumbnail_id($forum_id)) {return wp_get_attachment_image($thumbnail_id, $size);} if ($group_id = bbp_get_forum_group_ids($forum_id)) {$group_id = $group_ids[0];$group_avatar_url = bp_core_fetch_avatar(['item_id' => $group_id, 'object' => 'group', 'type' => $type, 'html' => false, 'force_default' => false,]);$group_default_avatar = bp_group_default_avatar (", ['object' => 'group', 'type' => $type]); / /指定用户类型If ($group_avatar_url != $group_default_avatar) {return bp_core_fetch_avatar(['item_id' => $group_id, 'object' => 'group', 'type' => $type, 'force_default' => false,]);}}返回";}
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |