Title: Hook on change
Last modified: March 3, 2018

---

# Hook on change

 *  [Kru-x](https://wordpress.org/support/users/mrkrux/)
 * (@mrkrux)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/hook-on-change/)
 * Is there hook that will trigger when a custom post type (ACF) is changed, but
   before it is published?
 * Reason is that I have two date field and I would like to auto fill the second
   one with a calculation on distance and speed. So when user add distance and speed
   and the start date the end date is automatically filled. And how would you go
   about to do this? Or push in the right direction, new to the whole wordpress 
   programming.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 3 months ago](https://wordpress.org/support/topic/hook-on-change/#post-10036044)
 * The best place to ask is that plugin’s support sub-forum. The author would know
   best.

Viewing 1 replies (of 1 total)

The topic ‘Hook on change’ is closed to new replies.

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [calculation](https://wordpress.org/support/topic-tag/calculation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/hook-on-change/#post-10036044)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
