wc_time_format()
WooCommerce Time Format - Allows to change time format for everything WooCommerce.
Hooks from the function
Returns
String.
Usage
wc_time_format();
wc_time_format() wc time format code WC 10.4.3
function wc_time_format() {
$time_format = get_option( 'time_format' );
if ( empty( $time_format ) ) {
// Return default time format if the option is empty.
$time_format = 'g:i a';
}
return apply_filters( 'woocommerce_time_format', $time_format );
}