Skip to content

[Snippet] Hide WooCommerce Backend Login for Non-Admins

This snippet allows you to prevent backend access for non-admins. It will not increase your store’s security significantly, but it will help you to hide the default WordPress login page.

Careful: if you use this snippet, please be aware that you will also not be able to login through the EXAMPLE.com/wp-admin link anymore. During the installation of WooCommerce, you will have set a ‘My Account’ page. You can use that page to login. Once authenticated as administrator, you will be able to access WooCommerce’s backend normally.

Get the snippet

Find this snippet on Github.

Need help?

Please let us know in the comments if the snippet does not work for you or if you need any help.

Share on whatsapp
WhatsApp
Share on email
Email
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

About the author

Discussion

Join the discussion about ‘Hide WooCommerce Backend Login for Non-Admins’