Skip to content

Instantly share code, notes, and snippets.

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