php-connectwp-deprecation.php

Classes

BrightV1Api

Functions

bright_run_stored_query()

bright_run_stored_query(  $name,   $params,   $query_scope = nil) 

This file creates a pre-bright 8.0 workalike for Wordpress.

But really don't use these calls. They will be removed .... soon.

Parameters

$name
$params
$query_scope

bright_log()

bright_log(  $message,   $doecho = false,   $extra_text = null) 

Parameters

$message
$doecho
$extra_text

bright_is_boolean_option_set()

bright_is_boolean_option_set(  $option) 

Parameters

$option

bright_register_user_to_course()

bright_register_user_to_course(  $api_key,   $email,   $course) 

Parameters

$api_key
$email
$course

bright_update_user_meta()

bright_update_user_meta(  $field,   $learner) 

Parameters

$field
$learner

bright_curl_error()

bright_curl_error() 

bright_curl()

bright_curl(string  $url, string  $method = null, array  $data = null,   $showerrors = false) : String

Parameters

string $url
string $method
array $data
$showerrors

Returns

String —

response data from the curl call

bright_stop()

bright_stop() 

bright_get_user()

bright_get_user() 

bright_reset_token()

bright_reset_token() 

Reset the global bright token to null

bright_return_as_javascript()

bright_return_as_javascript(  $code) 

Parameters

$code

bright_fetch_user_attributes()

bright_fetch_user_attributes(  $user, array  $args = array()) 

Parameters

$user
array $args

bright_testing()

bright_testing() 

returns TRUE if we are in test mode

dump_bright_js_for_footer()

dump_bright_js_for_footer()