Created
April 11, 2016 13:05
-
-
Save stevenhoney/1f9014f53ad7ddf24f90caa961ca43ec to your computer and use it in GitHub Desktop.
Issue passing dates to datepicker in Ninja Forms
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
//Customise Datepicker on contact forms | |
function nf_datepicker_modify_script( $args ){ | |
//for a list of arguments which can be used here, see the options here http://api.jqueryui.com/datepicker/ | |
$args['dateFormat'] = 'mm/dd/yy'; | |
$args['minDate'] = '06/15/15'; | |
$args['minDate'] = '10/15/15'; | |
return $args; | |
} | |
add_filter( 'ninja_forms_forms_display_datepicker_args', 'nf_datepicker_modify_script' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment