Display custom fields on order details page in Woocommerce

You can use WordPress function "get_post_meta" to echo out your custom field in "order-details.php" template.

<?php echo get_post_meta( $order->id, 'custom-field-name', true ); ?>

Comments

Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation