WordPress at Your Fingertips
function is not described

WC_Order::get_order_number() public WC 1.0

Gets the order number for display (by default, order ID).

{} It's a method of the class: WC_Order{}

Hooks from the method
Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_order_number();

Code of WC_Order::get_order_number() WC 5.6.0

public function get_order_number() {
	return (string) apply_filters( 'woocommerce_order_number', $this->get_id(), $this );
}