SyncGenerator::syncingToLearndash( $callback )
Wrapper to prevent infinite 2 way sync when syncing to learndash
Description
Source
File: bp-integrations/learndash/library/SyncGenerator.php
protected function syncingToLearndash($callback)
{
global $bp_ld_sync__syncing_to_learndash;
$bp_ld_sync__syncing_to_learndash = true;
$callback();
$bp_ld_sync__syncing_to_learndash = false;
return $this;
}
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.