Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created April 10, 2018 05:42
Show Gist options
  • Save bryceadams/9f70d05d30ce7be6bdebb489c487974f to your computer and use it in GitHub Desktop.
Save bryceadams/9f70d05d30ce7be6bdebb489c487974f to your computer and use it in GitHub Desktop.
WC Custom Meta Getting
<?php
$order_id = 125;
echo get_post_meta( $order_id, 'payment_gateway_fee', true ); // 1.60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment