Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Coupon_Data_Store_CPT::get_tentative_held_time()

Get held time for resources before cancelling the order. Use 60 minutes as sane default.


Description Description

Note that the filter woocommerce_coupon_hold_minutes only support minutes because it’s getting used elsewhere as well, however this function returns in seconds.


Return Return

(int)


Top ↑

Source Source

File: includes/data-stores/class-wc-coupon-data-store-cpt.php

	private function get_tentative_held_time() {
		return apply_filters( 'woocommerce_coupon_hold_minutes', ( (int) get_option( 'woocommerce_hold_stock_minutes', 60 ) ) ) * 60;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.