Settings::setGroupSyncTimestamp( $options, $oldOptions )
Set the group sync timestamp to determine if we need a full sync of simple sync
Description
Source
File: bp-integrations/learndash/core/Settings.php
public function setGroupSyncTimestamp($options, $oldOptions)
{
$new = new ValueLoader($options);
$old = new ValueLoader($oldOptions);
$time = time();
if ($new->get('buddypress.enabled') && ! $old->get('buddypress.enabled')) {
bp_update_option('bp_ld_sync/bp_last_synced', $time, false);
}
if ($new->get('learndash.enabled') && ! $old->get('learndash.enabled')) {
bp_update_option('bp_ld_sync/ld_last_synced', $time, false);
}
}
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.