WC_Coupon_Data_Store_CPT::get_tentative_held_time()privateWC 1.0

Get held time for resources before cancelling the order. Use 60 minutes as sane default. Note that the filter woocommerce_coupon_hold_minutes support minutes because it's getting used elsewhere as well, however this function returns in seconds.

Method of the class: WC_Coupon_Data_Store_CPT{}

Hooks from the method

Return

Int.

Usage

// private - for code of main (parent) class only
$result = $this->get_tentative_held_time();

WC_Coupon_Data_Store_CPT::get_tentative_held_time() code WC 9.3.3

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