Home › Forums › General Issues › Function that get ACF fields value before saving › Reply To: Function that get ACF fields value before saving
i have similar problems but i have any results. i would like update the slug (post_name) with wp_insert_post_data based on my field my_baseline
Step 1
– Create new post
– fill field text as “my_baseline”
Step 2
– Save your post
i finaly found simple solution to use $_POST[‘acf’][‘field_myfieldid’];
the better way with to use json to convert acf_field name to acf_field_id
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.