WordPress at Your Fingertips
function is not described

WC_Order_Data_Store_CPT::get_order_key() protected WC 4.3.0

Get order key.

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

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_order_key( $order );
$order(WC_order) (required)
Order object.

Changelog

Since 4.3.0 Introduced.

Code of WC_Order_Data_Store_CPT::get_order_key() WC 5.6.0

protected function get_order_key( $order ) {
	if ( '' !== $order->get_order_key() ) {
		return $order->get_order_key();
	}

	return parent::get_order_key( $order );
}