Sync::groupUserEditCheck( $role, $groupId )
Check if the user type need to be synced
Description
Source
File: bp-integrations/learndash/buddypress/Sync.php
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | protected function groupUserEditCheck( $role , $groupId ) { if (! $this ->preCheck()) { return ; } $settings = bp_ld_sync( 'settings' ); if (! $settings ->get( 'buddypress.enabled' )) { return false; } if ( 'none' == $settings ->get( "buddypress.default_{$role}_sync_to" )) { return false; } $generator = $this ->generator( $groupId ); if (! $generator ->hasLdGroup()) { return false; } return $generator ; } |
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.