Created
August 30, 2016 16:37
-
-
Save jaredatch/a07b61e3d571dbe750f3ebdd67bfb99f to your computer and use it in GitHub Desktop.
WPForms customize the timepicker format (remove AM/PM)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WPForms customize the timepicker format (remove AM/PM) | |
*/ | |
function wpf_timepicker_custom() { | |
?> | |
<script type="text/javascript"> | |
var wpforms_pickatime = { | |
format: 'H:i' | |
} | |
</script> | |
<?php | |
} | |
add_action( 'wpforms_wp_footer', 'wpf_timepicker_custom' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment