LLMS_AJAX_Handler::validate_coupon_code( array $request )
Validate a Coupon via the Checkout Form
Description Description
Parameters Parameters
- $request
-
(Required) $_POST data.
Return Return
(array|WP_Error) On success, returns an array containing HTML parts used to update the interface of the checkout screen. On error, returns an error object with details of the encountered error.
Source Source
File: includes/class.llms.ajax.handler.php
Changelog Changelog
Version | Description |
---|---|
4.21.1 | Sanitize user-submitted coupon code before outputting in error messages. |
3.39.0 | Minor changes to code for readability with no changes to function behavior. |
3.0.0 | Introduced. |