WC_Discounts | apply_coupon PHPDoc @throws Fix

This commit is contained in:
Khan M Rashedun-Naby 2018-06-06 01:47:16 +06:00
parent 36c6aaf7a7
commit ad7bc84c2b
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 ) {