WC_Discounts | apply_coupon PHPDoc @throws Fix
This commit is contained in:
parent
36c6aaf7a7
commit
ad7bc84c2b
|
@ -239,6 +239,7 @@ class WC_Discounts {
|
|||
* @since 3.2.0
|
||||
* @param WC_Coupon $coupon Coupon object being applied to the items.
|
||||
* @param bool $validate Set to false to skip coupon validation.
|
||||
* @throws Exception Error message when coupon isn't valid.
|
||||
* @return bool|WP_Error True if applied or WP_Error instance in failure.
|
||||
*/
|
||||
public function apply_coupon( $coupon, $validate = true ) {
|
||||
|
|
Loading…
Reference in New Issue