How can i show custom order metadata in WooCommerce App ??
-
Hi WooCommerce,
Iam using this guide to create custom order metadata field: https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/and using this hook to display it in admin edit order:
add_action( ‘woocommerce_admin_order_data_after_billing_address’, ‘my_custom_checkout_field_display_admin_order_meta’, 10, 1 );
function my_custom_checkout_field_display_admin_order_meta($order){
echo ‘<p>‘.__(‘My Field’).’: ‘ . get_post_meta( $order->id, ‘My Field’, true ) . ‘</p>’;
}It working fine in admin site, but it does not show in WooCommerce app
Can you tell me how to resolve this problem ?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How can i show custom order metadata in WooCommerce App ??’ is closed to new replies.