Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save plugin-republic/956c3c36e227103a91096e61a8d3f827 to your computer and use it in GitHub Desktop.
Save plugin-republic/956c3c36e227103a91096e61a8d3f827 to your computer and use it in GitHub Desktop.
<?php
$order = wc_get_order( $order_id );
$customer_id = $order->get_user_id();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment