Custom date to time change functions
-
if( get_option('ywraq_expired_time', 0) != 0 ){ $expire_time = time() + get_option('ywraq_expired_time', 0) * HOUR_IN_SECONDS; $expire_date = apply_filters( 'ywraq_expire_date_format', date('h:i:s', $expire_time ), $expire_time); $attr['_ywcm_request_expire'] = $expire_date; } if ( $attr ) { foreach ( $attr as $key => $item ) { $function = 'set' . $key; if ( is_callable( array( $order, $function ) ) ) { $order->$function( $item ); } else { $order->update_meta_data( $key, $item ); } } $order->save(); } }
please how can i change this from date to time, it is a quote expiring function but it is set to expire in days, but i want to set the expiring time in hours only not days, example i will like every requested qoute to expire in 48hrs, i got this function from yith woocommerce request quote pluign…
Please help me with this changes please…
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom date to time change functions’ is closed to new replies.