Merge pull request #20401 from rnaby/060618-014612-wc-discounts-apply_coupon-phpdoc
WC_Discounts | apply_coupon PHPDoc @throws Fix
This commit is contained in:
commit
88607e664d
|
@ -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