Snippets

Visser Labs Show 24 hour time format in the Time Picker in WooCommerce Checkout Manager

Created by Michael Visser
<?php
function custom_wooccm_timepicker_jquery_args( $args, $btn ) {

	$args = '
showPeriod: false,
showPeriodLabels: false,
showSecond: false,
timeFormat: "HH:mm:ss",
ampm: false
	';
	return $args;

}
add_filter( 'wooccm_timepicker_jquery_args', 'custom_wooccm_timepicker_jquery_args', 10, 2 );
?>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.