Question: I want to know if the shop\_manager is logged-in WP/woocommerce. I know the function is\_admin(), but do you know a way to use something like this 'is\_shop\_manager()' ?

Thanks

Answer: 
Actually Yes, there is!

```
current_user_can( 'manage_woocommerce' );

```

Docs:

[current\_user\_can($capability)](https://codex.wordpress.org/Function_Reference/current_user_can)

['manage\_woocommerce'](https://docs.woothemes.com/document/roles-capabilities/)
Checking the role `current_user_can('shop_manager')` will tell you whether the user can manage the shop or not.