I update my notes from the front with REST API using POST query, by sending data like this in a request:
{
data: {
'_acf_nonce': acf_nonce_field, // here is the value of the input from the field
'title': title_form,
'content': content_form,
'status': status_doc,
'fields': {
'version': ver,
}
if the field _acf_nonce is missing, then the post will be updated but the acf field is not updated 🙁 in my case this is the field version
if you match the value that I take from wp/admin/post.php, then the version field will be updated! but how do i get it 🙁
<div id=”acf-form-data” class=”acf-hidden”>
<input type=”hidden” id=”_acf_screen” name=”_acf_screen” value=”post”>
<input type=”hidden” id=”_acf_post_id” name=”_acf_post_id” value=”694″>
<input type=”hidden” id=”_acf_validation” name=”_acf_validation” value=”1″>
<input type=”hidden” id=”_acf_nonce” name=”_acf_nonce” value=”0135d4e496″>
<input type=”hidden” id=”_acf_changed” name=”_acf_changed” value=”0″>
</div>