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:
Mike Jolley 2018-06-06 12:13:54 +01:00 committed by GitHub
commit 88607e664d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {