WordPress at Your Fingertips
function is not described

wc_update_240_options() WC 1.0

Update calc discount options for 2.4

No Hooks.

Return

null. Nothing.

Usage

wc_update_240_options();

Code of wc_update_240_options() WC 5.5.2

<?php
function wc_update_240_options() {
	/**
	 * Coupon discount calculations.
	 * Maintain the old coupon logic for upgrades.
	 */
	update_option( 'woocommerce_calc_discounts_sequentially', 'yes' );
}