SyncGenerator::getLastSyncTimestamp( $type = 'bp' )

Get the timestamp when the group is last synced

Description

Source

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

748
749
750
751
752
753
754
755
756
protected function getLastSyncTimestamp($type = 'bp')
{
    if (! $lastSync = bp_get_option("bp_ld_sync/{$type}_last_synced")) {
        $lastSync = time();
        bp_update_option("bp_ld_sync/{$type}_last_synced", $lastSync);
    }
 
    return $lastSync;
}

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.