SyncGenerator::syncingToLearndash( $callback )

Wrapper to prevent infinite 2 way sync when syncing to learndash

Description

Source

File: bp-integrations/learndash/library/SyncGenerator.php

718
719
720
721
722
723
724
725
726
727
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

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.