0
get_formatted_order_total()で特定の注文の 'Price'と 'Payment method'を表示したいのは、私が知っているのはorder_numberだけです。私がWooCommerceのorder_numberを知っている場合、get_formatted_order_total()を呼び出す方法
特定の注文のフォーマット済み注文合計を取得する最良の方法は何ですか?
get_formatted_order_total()で特定の注文の 'Price'と 'Payment method'を表示したいのは、私が知っているのはorder_numberだけです。私がWooCommerceのorder_numberを知っている場合、get_formatted_order_total()を呼び出す方法
特定の注文のフォーマット済み注文合計を取得する最良の方法は何ですか?
それがパブリック関数であるので、あなたが使用することができ、
$order = new WC_Order($order_id);
$string = $order->get_formatted_order_total();