Answer the question
In order to leave comments, you need to log in
How to add value to Post Object field in ACF via code?
How to add value to Post Object field in ACF via code?
I need to add value through update_fields through code.
The normal embed code in the field doesn't work. Here is the code:
$value[] = array("perks" => 9999);
update_field($field_key, $value, $post_id);
$value = array("perks" => 9999);
$value[] = array(9999);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question