Skip to content

Instantly share code, notes, and snippets.

@travislopes
Created March 9, 2017 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travislopes/050443f79893d5aa44cb382f75525bd4 to your computer and use it in GitHub Desktop.
Save travislopes/050443f79893d5aa44cb382f75525bd4 to your computer and use it in GitHub Desktop.
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
if ( formId == 12 && fieldId == 1 ) {
optionsObj.maxDate: -1
}
return optionsObj;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment