Admin::asyncMetaboxHtml()
Output group sync metabox html
Description
Source
File: bp-integrations/learndash/learndash/Admin.php
public function asyncMetaboxHtml()
{
$groupId = get_the_ID();
$generator = bp_ld_sync('learndash')->sync->generator(null, $groupId);
$hasBpGroup = $generator->hasBpGroup();
$bpGroupId = $hasBpGroup? $generator->getBpGroupId() : 0;
$bpGroup = groups_get_group($bpGroupId);
$availableBpGroups = bp_ld_sync('buddypress')->group->getUnassociatedGroups($groupId);
$checked = get_current_screen()->action == 'add'? bp_ld_sync('settings')->get('learndash.default_auto_sync') : $hasBpGroup;
require bp_ld_sync()->template('/admin/learndash/sync-meta-box.php');
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.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.