Showing Custom Notes
-
I LOVE your plugin! Thank you!
I have added this code to show a custom field on my PDF Packing Slip:
add_action( ‘wpo_wcpdf_after_order_details’, ‘wpo_wcpdf_teacher_name’, 10, 2 );
function wpo_wcpdf_teacher_name ($template_type, $order) {
if ($template_type == ‘packing-slip’) {
$document = wcpdf_get_document( $template_type, $order );
$document->custom_field(‘teacher_name’);
}
}How can I add the text phrase “Teacher Name:” to display?
Thank you!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Showing Custom Notes’ is closed to new replies.