Support

Account

Home Forums Backend Issues (wp-admin) Datepicker – Disable Selecting Future Dates Reply To: Datepicker – Disable Selecting Future Dates

  • For other users looking for this answer, the current syntax is a bit different:

    
    // Don't allow picking dates in the future
    acf.addAction('date_picker_init', function( $input, args, field ){
      $input.datepicker('option', 'maxDate', 0);
    });