Automattic\WooCommerce\Admin\API\Reports\Products
DataStore::init
Set up all the hooks for maintaining and populating table data.
Method of the class: DataStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = DataStore::init();
DataStore::init() DataStore::init code WC 10.8.1
public static function init() {
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
add_action( 'woocommerce_order_partially_refunded', array( __CLASS__, 'add_partial_refund_type_meta' ), 10, 2 );
add_action( 'woocommerce_order_fully_refunded', array( __CLASS__, 'add_full_refund_type_meta' ), 10, 2 );
}