Support

Account

Home Forums General Issues Set default for Time field? Reply To: Set default for Time field?

  • 
    add_filter('acf/prepare_field/name=time_field', 'my_default_time_set');
    function my_default_time_set($field) {
      if (empty($field['value'])) {
        $field['value'] = '00:00:00'; // 12:00am
      }
      return $field;
    }