Hooks::checkLearndashGroupUpdateMeta( $metaId, $userId, $metaKey, $metaValue )
Sub actions when admin or user is added to ld group
Description
Source
File: bp-integrations/learndash/learndash/Hooks.php
92 93 94 95 96 97 98 99 100 101 102 103 | public function checkLearndashGroupUpdateMeta( $metaId , $userId , $metaKey , $metaValue ) { if ( $this ->isLearndashLeaderMeta( $metaKey )) { $groupId = $this ->getLeardashMetaGroupId( $metaKey ); return do_action( 'bp_ld_sync/learndash_group_admin_added' , $groupId , $userId ); } if ( $this ->isLearndashUserMeta( $metaKey )) { $groupId = $this ->getLeardashMetaGroupId( $metaKey ); return do_action( 'bp_ld_sync/learndash_group_user_added' , $groupId , $userId ); } } |
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.