Adding custom fields to the left side
-
Hello. I have been using the codes below in the template-functions and it has been working great for me. But now I have too many custom fields on the right side so is there any way to shift some of the custom fields to the left side?
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_certificate', 10, 2 ); function wpo_wcpdf_certificate ($template_type, $order) { if ($template_type == 'invoice') { $document = wcpdf_get_document( $template_type, $order ); ?> <tr class="certificate"> <th>Certificate:</th> <td><?php $document->custom_field('certificate'); ?></td> </tr> <?php } }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Adding custom fields to the left side’ is closed to new replies.