报告::getGroupCoursesList ()
获取组的课程列表进行筛选
描述
源
文件:bp-乐动体育网站怎样integrations / learndash buddypress / Reports.php
protected函数getGroupCoursesList() {$ldGroupId = bp_ld_sync('buddypress')->helpers->getLearndashGroupId(group_get_current_group ()->id);$courseIds = learndash_group_enrolled_courses($ldGroupId);$course = array_map('get_post', apply_filters('bp_ld_learndash_group_enrolled_courses', $courseIds, $ldGroupId));函数课程,美元(对象)[' ID ' => '', ' post_title ' => __( ' 所有的课程”、“buddyboss”)]);返回wp_list_pluck($courses, 'post_title', 'ID');}
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |