WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_CPT::get_tentative_held_time() private WC 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.

{} It's a method of the class: WC_Coupon_Data_Store_CPT{}

Hooks from the method



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

Code of WC_Coupon_Data_Store_CPT::get_tentative_held_time() WC 5.6.0

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