i can just access the Post array from there?
$my_var = $_POST[‘my_var’];
?
Best regards,
Jan
Thank you elliot and sorry for the double-post. I thought you would ignore posts marked as solved, so I recreated one.
Dear elliot,
now I have another question regarding checkbox values.
I’m saving acf form data with ajax to postmeta, for a checkbox field with two checkboxes
value, anothervalue
the data stored by acf if both are checked is:
a:2{i:0;s:5:”value”;i:1;s:12:”anothervalue”;}
when I reload the page, retrieving postmeta and
set $field[‘value’] to a:2{i:0;s:5:”value”;i:1;s:12:”anothervalue”;}
the checkboxes are not checked 🙁
what am I doing wrong here?
Thank you and best regards,
Jan
my bad, my bad! got it working… it was an xdebug problem… sorry!
Hi elliot,
I tried using that filter, but it just don’t hook. 🙁
acf/load_value works fine and hooks but if I try using acf/load_field it just doesn’t hook.
What could I be doing wrong?
Best regards,
Jan
Hi elliot!
Thank you, that sounds nice!
Kind of embarrassing, you know how I tried to help myself?
I started using ob_start() and loaded the rendered form to a string, and then replaced the values using str_replace() 😛
This sounds a bit more elegant 😛
Thanks!
Jan