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
Actually Yes, there is!
current_user_can( 'manage_woocommerce' );
Docs:
current_user_can($capability)
'manage_woocommerce'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With