Admin::asyncMetaboxHtml()

Output group sync metabox html

Description

Source

File: bp-integrations/learndash/buddypress/Admin.php

	public function asyncMetaboxHtml()
    {
		$groupId    = bp_ld_sync()->getRequest('gid');
		$generator  = bp_ld_sync('buddypress')->sync->generator($groupId);
		$hasLdGroup = $generator->hasLdGroup();
		$ldGroupId  = $hasLdGroup? $generator->getLdGroupId() : 0;
		$ldGroup    = get_post($ldGroupId);
		$availableLdGroups = bp_ld_sync('learndash')->group->getUnassociatedGroups($groupId);

    	require bp_ld_sync()->template('/admin/buddypress/sync-meta-box.php');
    }

Changelog

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.