Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::get_refunds_data_store()privateWC 1.0

Gets the instance of the refunds data store to use.

Method of the class: CustomOrdersTableController{}

No Hooks.

Return

\WC_Object_Data_Store_Interface|String. The actual data store to use.

Usage

// private - for code of main (parent) class only
$result = $this->get_refunds_data_store( $default_data_store );
$default_data_store(\WC_Object_Data_Store_Interface|string) (required)
The default data store (as received via the woocommerce_order-refund_data_store hook).

CustomOrdersTableController::get_refunds_data_store() code WC 7.1.1

private function get_refunds_data_store( $default_data_store ) {
	return $this->get_data_store_instance( $default_data_store, 'order_refund' );
}