Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active December 1, 2018 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/c24c04738e7980ff22fcd46e8aed66a9 to your computer and use it in GitHub Desktop.
Save woogists/c24c04738e7980ff22fcd46e8aed66a9 to your computer and use it in GitHub Desktop.
[General Snippets] Allowing customer access to WP Admin
/**
* Allow customers to access wp-admin
*/
add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
add_filter( 'woocommerce_disable_admin_bar', '__return_false' );
@jotemo87
Copy link

jotemo87 commented Dec 1, 2018

Hi, I only need to give access to wp-admin to one specific role, does it exist some way to do this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment