Overview

Classes

  • Bright
  • BrightWoocommerceConstants
  • BrightWoocommerceIntegration
  • WoocommerceExtensions

Functions

  • bright_add_quicktags
  • bright_add_token_tag
  • bright_call_api_for_course
  • bright_check_compat
  • bright_curl
  • bright_curl_error
  • bright_echo_message
  • bright_extract_embed_code
  • bright_fetch_template_text
  • bright_fetch_user_attributes
  • bright_get_authentication_code_for_user
  • bright_get_avatar_url
  • bright_get_course_data
  • bright_get_course_list_with_registrations
  • bright_get_course_providers
  • bright_get_registration_data
  • bright_get_registration_list
  • bright_get_reportage_urls
  • bright_get_template_data
  • bright_get_user
  • bright_learning_paths_load_bright_customization_scripts
  • bright_load_custom_wp_admin_style
  • bright_load_scripts
  • bright_log
  • bright_manage_woocommerce_order
  • bright_menu_admin
  • bright_menu_overview
  • bright_menu_settings
  • bright_menu_sync
  • bright_message
  • bright_register_user_to_course
  • bright_render_as_javascript
  • bright_reset_token
  • bright_results_matrix
  • bright_return_as_javascript
  • bright_rewrite_embed_code
  • bright_run_stored_query
  • bright_set_current_course_provider
  • bright_shortcode_func
  • bright_stop
  • bright_stub
  • bright_support
  • bright_template_pack_load_bright_customization_scripts
  • bright_template_pack_load_bright_customization_styles
  • bright_update_all_users
  • bright_update_realmuser_meta
  • bright_update_user_licenses
  • bright_update_user_meta
  • btp_create_header_text
  • dump_bright_js_for_footer
  • setup_bright_menu
  • Overview
  • Class

Class BrightWoocommerceIntegration

Located at wp-bright-woocommerce-integration/bright-woocommerce-integration/bright-woocommerce-integration.php
Methods summary
public static Boolean
# is_bright_product( WC_Product $product )

Returns true if product has associated linked Bright product ids.

Returns true if product has associated linked Bright product ids.

Parameters

$product

Returns

Boolean
public static Boolean
# is_cart_a_probable_license_purchase( )

Returns true if product is a bright product, and one of the following is true: 1. the item quantity is greater than 1. 2. the bright metadata defines a quantity_multiplier. 3. the bright metadata indicates that the product should always be in the form of a license purchase.

Returns true if product is a bright product, and one of the following is true: 1. the item quantity is greater than 1. 2. the bright metadata defines a quantity_multiplier. 3. the bright metadata indicates that the product should always be in the form of a license purchase.

No arguments is taken, access to the cart is via the global $woocommerce variable.

Returns

Boolean
public static
# update_user_licenses( $user_id, $licenses = null )
public static
# get_bright_license_id( $wc_order )
public static
# set_bright_license_id( $wc_order, $license_id )
public static
# is_license_order( $wc_order )
public static
# get_bright_product_metadata( $product )
public static
# get_bright_course_ids( $product )
public static
# debug_order( $wc_order )
public static integer
# determine_quantity( integer $item_quantity, string $bright_course_id, Arrray $bright_metadata )

Returns an integer representing the quantity of the bright course to be purchased. This can be a function of the item quantity and/or bright metadata See also http://help.aura-software.com/defining-bright-metadata-for-a-product/

Returns an integer representing the quantity of the bright course to be purchased. This can be a function of the item quantity and/or bright metadata See also http://help.aura-software.com/defining-bright-metadata-for-a-product/

Parameters

$item_quantity
$bright_course_id
$bright_metadata

Returns

integer
public static
# manage_license_order( $wc_order )
API documentation generated by ApiGen