Automattic\WooCommerce\Internal\DataStores\Orders
OrdersTableDataStore::get_cpt_data_store_instance()
Helper method to get a CPT data store instance to use.
Method of the class: OrdersTableDataStore{}
No Hooks.
Return
\WC_Order_Data_Store_CPT
. Data store instance.
Usage
$OrdersTableDataStore = new OrdersTableDataStore(); $OrdersTableDataStore->get_cpt_data_store_instance();
OrdersTableDataStore::get_cpt_data_store_instance() OrdersTableDataStore::get cpt data store instance code WC 8.6.1
public function get_cpt_data_store_instance() { if ( ! isset( $this->cpt_data_store ) ) { $this->cpt_data_store = $this->get_post_data_store_for_backfill(); } return $this->cpt_data_store; }