Automattic\WooCommerce\Admin\API\Reports\Products
DataStore::init
Set up all the hooks for maintaining and populating table data.
Метод класса: DataStore{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = DataStore::init();
Код DataStore::init() DataStore::init WC 10.3.6
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 );
}