Automattic\WooCommerce\Admin\API\Reports\Orders\Stats

DataStore::init()public staticWC 1.0

Set up all the hooks for maintaining and populating table data.

Method of the class: DataStore{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = DataStore::init();

DataStore::init() code WC 8.7.0

public static function init() {
	add_action( 'woocommerce_before_delete_order', array( __CLASS__, 'delete_order' ) );
	add_action( 'delete_post', array( __CLASS__, 'delete_order' ) );
}