WC_REST_Order_Refunds_V2_Controller::get_object()protectedWC 3.0.0

Get object.

Method of the class: WC_REST_Order_Refunds_V2_Controller{}

No Hooks.

Return

WC_Data.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_object( $id );
$id(int) (required)
Object ID.

Changelog

Since 3.0.0 Introduced.

WC_REST_Order_Refunds_V2_Controller::get_object() code WC 9.1.2

protected function get_object( $id ) {
	return wc_get_order( $id );
}