WC_Admin_Menus::can_view_woocommerce_menu_item()public staticWC 1.0

Check if the user can access the top-level WooCommerce item.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Menus::can_view_woocommerce_menu_item();

Code of WC_Admin_Menus::can_view_woocommerce_menu_item() WC 6.6.1

public static function can_view_woocommerce_menu_item() {
	return current_user_can( 'edit_others_shop_orders' );
}