WC_Coupon_Data_Store_CPT::get_tentative_held_time()
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{}
Хуки из метода
Возвращает
int
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_tentative_held_time();
Код WC_Coupon_Data_Store_CPT::get_tentative_held_time() WC Coupon Data Store CPT::get tentative held time WC 8.7.0
private function get_tentative_held_time() { return apply_filters( 'woocommerce_coupon_hold_minutes', ( (int) get_option( 'woocommerce_hold_stock_minutes', 60 ) ) ) * 60; }