ACF Custom Fields
-
Hello,
I’ve been trying to add an ACF field to my invoices and for unknown reasons I can not get it to work. I’ve tried using the following code without much success. The ACF field meta is customer_no. I’ve used USER_customer_no and _customer_no and still getting a blank display. Any assistance will be appreciated.
/* Add Account Number to Invoice */ add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_customer_no', 10, 2 ); function wpo_wcpdf_customer_no ($template_type, $order) { if ($template_type == 'invoice') { ?> <tr class="customer-no"> <th>Account No: </th> <td><?php echo $order->get_meta('customer_no'); ?></td> </tr> <?php } }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘ACF Custom Fields’ is closed to new replies.