这是我的代码
add_action( 'woocommerce_payment_complete', 'my_api_call');
function my_api_call( $order_id ){
// Order Setup Via WooCommerce
$order = new WC_Order( $order_id );
// Iterate Through Items
$items = $order->get_items();
$url = "http://Example.com/Api/WooCommerceApi/SaveSubscriptionAndZoomData?".$order;
}
请用你的知识帮助我。谢谢
HUH函数