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.

Метод класса: WC_Coupon_Data_Store_CPT{}

Хуки из метода




// private - только в коде основоного (родительского) класса
$result = $this->get_tentative_held_time();

Код WC_Coupon_Data_Store_CPT::get_tentative_held_time() WC 9.1.2

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