Home › Forums › ACF PRO › Hook on field change › Reply To: Hook on field change
This should give you a nudge in the direction.
This code needs to placed in functions.php.
function acf_57448( $post_id ) {
$start_date = get_field( 'field_name', $post_id );
// do stuff to calculate ETA
update_field( 'eta_field_name', $post_id )
}
add_action( 'acf/save_post', 'acf_57448', 20 );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.