HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/rocioprime/wp-content/plugins/woocommerce/includes/admin/woocommerce-legacy-reports.php
<?php
declare( strict_types = 1 );

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

// This will be the main plugin file after moving the legacy reports to a separate plugin.

if ( ! function_exists( 'woocommerce_legacy_reports_init' ) ) {
	/**
	 * Initialize the WooCommerce legacy reports.
	 */
	function woocommerce_legacy_reports_init() {
		require_once __DIR__ . '/class-wc-admin-reports.php';

		WC_Admin_Reports::register_hook_handlers();
	}

	add_action( 'woocommerce_init', 'woocommerce_legacy_reports_init' );
}