ACF Integration

Posted by:

To create custom fields that retrieve information from ACF (advanced custom field) you need to use the_field function. An easy template that you can use is this one:

return get_field('your_field_name',$order->get_id());

Replace “your_field_name” for the name/id (not the label) of the field that you want to retrieve, example:

Continue Reading →