__( 'Revenue', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/revenue', ) ); wc_admin_register_page( array( 'title' => __( 'Orders', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/orders', ) ); wc_admin_register_page( array( 'title' => __( 'Products', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/products', ) ); wc_admin_register_page( array( 'title' => __( 'Categories', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/categories', ) ); wc_admin_register_page( array( 'title' => __( 'Coupons', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/coupons', ) ); wc_admin_register_page( array( 'title' => __( 'Taxes', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/taxes', ) ); wc_admin_register_page( array( 'title' => __( 'Downloads', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/downloads', ) ); if ( 'yes' === get_option( 'woocommerce_manage_stock' ) ) { wc_admin_register_page( array( 'title' => __( 'Stock', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/stock', ) ); } wc_admin_register_page( array( 'title' => __( 'Customers', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/customers', ) ); wc_admin_register_page( array( 'title' => __( 'Settings', 'woocommerce-admin' ), 'parent' => '/analytics/revenue', 'path' => '/analytics/settings', ) ); } } new WC_Admin_Analytics();