WC_Order_Data_Store_CPT::get_order_key()protectedWC 4.3.0

Get order key.

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.

WC_Order_Data_Store_CPT::get_order_key() code WC 9.3.3

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

	return parent::get_order_key( $order );
}