WC_Admin_Reports::register_orders_hook_handlers │ public static │ WC 10.6.0

Register the hook handlers for integrating with orders.

Method of the class: WC_Admin_Reports{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_Admin_Reports::register_orders_hook_handlers(): void;

Changelog

Since 10.6.0 Introduced.

WC_Admin_Reports::register_orders_hook_handlers() code WC 11.1.2

public static function register_orders_hook_handlers(): void {
	add_action( 'woocommerce_delete_shop_order_transients', array( __CLASS__, 'delete_legacy_reports_transients' ), 10, 1 );
	add_action( 'woocommerce_delete_legacy_report_transients', array( __CLASS__, 'delete_legacy_reports_transients' ), 10, 2 );
}