woocommerce_update_coupon

woocommerce_update_coupon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_update_coupon') is found 1 times:

  • /includes/data-stores/class-wc-coupon-data-store-cpt.php line 218
    		if ( 'publish' !== $coupon->get_status() ) {
    			wp_cache_delete( WC_Cache_Helper::get_cache_prefix( 'coupons' ) . 'coupon_id_from_code_' . $coupon->get_code(), 'coupons' );
    		}
    
    		do_action( 'woocommerce_update_coupon', $coupon->get_id(), $coupon );
    	}
    
    	/**
    	 * Deletes a coupon from the database.
    	 *
    	 * @since 3.0.0