BRIGHT_WOOCOMMERCE_MY_PURCHASED_COURSES_PAGE_ID
BRIGHT_WOOCOMMERCE_MY_PURCHASED_COURSES_PAGE_ID
doProfileChange(null $null, integer $object_id, string $meta_key, mixed $meta_value, mixed $prev_value) : Boolean
This callback is attached to the WordPress update_user_metadata filter.
For more information see the wordpress documentation on the filter. [https://codex.wordpress.org/Plugin_API/Filter_Reference/update_(meta_type)_metadata]. Note this filter must return NULL for the save to happen correctly.
null | $null | Dummy value of no use. |
integer | $object_id | ID of the object metadata is for |
string | $meta_key | Metadata key |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
mixed | $prev_value | Optional. If specified, only update existing metadata entries with the specified value. Otherwise, update all entries. |
determineQuantity(integer $item_quantity, string $bright_course_id, Array $bright_metadata) : integer
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/
integer | $item_quantity | |
string | $bright_course_id | |
Array | $bright_metadata |