Last active
December 1, 2018 22:11
-
-
Save woogists/c24c04738e7980ff22fcd46e8aed66a9 to your computer and use it in GitHub Desktop.
[General Snippets] Allowing customer access to WP Admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Allow customers to access wp-admin | |
*/ | |
add_filter( 'woocommerce_prevent_admin_access', '__return_false' ); | |
add_filter( 'woocommerce_disable_admin_bar', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I only need to give access to wp-admin to one specific role, does it exist some way to do this? Thanks!