Home › Forums › Backend Issues (wp-admin) › Updating ACF Data in DB › Reply To: Updating ACF Data in DB
Hi, John –
Thank you for this explanation. Your support is much appreciated. As things stand I have a small snippet which runs in the background as the form is submitted:
add_action('gform_advancedpostcreation_post_after_creation_7', 'gf_calendar_date', 10, 4);
function gf_calendar_date($post_id, $feed, $entry, $form) {
update_post_meta( $post_id, 'calendar_date', $entry['16'] );
}
Should this be changed to this…
add_action('gform_advancedpostcreation_post_after_creation_7', 'gf_calendar_date', 10, 4);
function gf_calendar_date($post_id, $feed, $entry, $form) {
update_post_meta( $post_id, 'calendar_date', $entry['16'] );
update_post_meta( $post_id, '_calendar_date', 'field_63d65a709c89a' );
}
Thanks again.
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.