WC_Admin_Menus::can_view_woocommerce_menu_item()public staticWC 1.0

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

Method of the class: WC_Admin_Menus{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Menus::can_view_woocommerce_menu_item();

WC_Admin_Menus::can_view_woocommerce_menu_item() code WC 8.9.0

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