SyncGenerator::createLearndashGroup()
Greate a ld group based on current bp group
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
588 589 590 591 592 593 594 595 596 597 598 599 | protected function createLearndashGroup() { $bpGroup = groups_get_group( $this ->bpGroupId); $this ->ldGroupId = wp_insert_post([ 'post_title' => $bpGroup ->name, 'post_author' => $bpGroup ->creator_id, 'post_content' => $bpGroup ->description, 'post_status' => 'publish' , 'post_type' => learndash_get_post_type_slug( 'group' ) ]); } |
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.