Support

Account

Home Forums Front-end Issues Save ACF field with actual now date and time Reply To: Save ACF field with actual now date and time

  • 
    add_action('acf/save_post', 'set_submit_time');
    set_submit_time($post_id) {
      // field key of date/time field
      // use field key
      update_field('field_XXXXXXX', data(Y-m-d H:i:s'), $post_id);
    }