Setting Up Bright Sync

Bright Sync is a mechanism that allows for your Bright data [including the underlying SCORM Cloud data], to be synced into your WordPress or Drupal environment in real time.

This would be useful for local reporting that integrated with local database tables without having to use the SCORM Cloud or Bright apis.

You must configure a local API key in your Bright settings:

In the WordPress admin panel, go to the Bright section and select settings. Then click on the ApiKeys tab and setup the

  • Local API Key
  • Local Secret Key

In the WordPress admin panel, go to the Bright section and select settings. Then select plugin function, and enable Sync.

You can hook your own code to process callbacks that store records from Bright [registrations or learning paths]

The following shows an example that attaches a local code block to a message from Bright showing learning path data has changed.

    add_action('bright_after_bright_learning_path_status_sync', function($data,$formats)  {
    /* $data is an Array of the $_POST data received from the Bright Server */
    /* $formats is an Array of formats representing the expected datatype of each incoming data field, as can be used for SQL statements or printf, etc. */

    /* do some custom action here */

}, 10, 2);

or for bright registrations

add_action('bright_after_bright_registrations_sync', function($data,$formats)  {

/* use $data[] to do something with the record */
}, 10, 2);

As of Fall 2021, Bright Sync is a for-pay add-on and please contact support or check the Bright Pricing Page for what pricing plans are available.