Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::get_orders_data_store
Gets the instance of the orders data store to use.
Method of the class: CustomOrdersTableController{}
No Hooks.
Returns
\WC_Object_Data_Store_Interface|String. The actual data store to use.
Usage
$CustomOrdersTableController = new CustomOrdersTableController(); $CustomOrdersTableController->get_orders_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_data_store hook).
CustomOrdersTableController::get_orders_data_store() CustomOrdersTableController::get orders data store code WC 10.7.0
public function get_orders_data_store( $default_data_store ) {
return $this->get_data_store_instance( $default_data_store, 'order' );
}