How am I able to take a variable and assign it to a newly created ACF?
$sku = $product->sku; // Example: $sku = 'id10t';
I’d like to create a field that I can assign the
– Create new text field called
product_sku would be populated by
Unsure how to even go about doing this with ACF, unsure how to search the issue as well.
Hope this makes sense. Might be too vague.
It is a little vaugue, but you can assign values to fields in code using update_field() https://www.advancedcustomfields.com/resources/update_field/
This is perfect. Thank you! Exactly what I needed.