Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::get_refunds_data_store()
Gets the instance of the refunds data store to use.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
\WC_Object_Data_Store_Interface|Строку
. The actual data store to use.
Использование
$CustomOrdersTableController = new CustomOrdersTableController(); $CustomOrdersTableController->get_refunds_data_store( $default_data_store );
- $default_data_store(\WC_Object_Data_Store_Interface|строка) (обязательный)
- The default data store (as received via the woocommerce_order-refund_data_store hook).
Код CustomOrdersTableController::get_refunds_data_store() CustomOrdersTableController::get refunds data store WC 9.7.1
public function get_refunds_data_store( $default_data_store ) { return $this->get_data_store_instance( $default_data_store, 'order_refund' ); }