SyncGenerator:: associateToLearndash (ldGroupId美元=零)
将当前bp组与ld组联系起来
描述
源
文件:bp-乐动体育网站怎样integrations / learndash /图书馆/ SyncGenerator.php
public function associateToLearndash($ldGroupId = null) {if ($this->ldGroupId && !$ldGroupId){返回$this;} $this->syncingToLearndash(function() use ($ldGroupId) {$ldGroup = get_post($ldGroupId);如果(!美元ldGroupId | | !ldGroup美元){$ this - > createLearndashGroup ();} else {$this->unsetBpGroupMeta(false)->unsetLdGroupMeta(false);$ this - > ldGroupId = $ ldGroupId;} $ this - > setSyncGropuIds ();}); return $this; }
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |