WC_Admin_Reports::register_orders_hook_handlers
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() 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 );
}