WordPress at Your Fingertips
function is not described

WC_Admin_Menus::reports_menu() public WC 1.0

Add menu item.

{} It's a method of the class: WC_Admin_Menus{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->reports_menu();

Code of WC_Admin_Menus::reports_menu() WC 5.9.0

public function reports_menu() {
	if ( current_user_can( 'edit_others_shop_orders' ) ) {
		add_submenu_page( 'woocommerce', __( 'Reports', 'woocommerce' ), __( 'Reports', 'woocommerce' ), 'view_woocommerce_reports', 'wc-reports', array( $this, 'reports_page' ) );
	} else {
		add_menu_page( __( 'Sales reports', 'woocommerce' ), __( 'Sales reports', 'woocommerce' ), 'view_woocommerce_reports', 'wc-reports', array( $this, 'reports_page' ), 'dashicons-chart-bar', '55.6' );
	}
}