Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[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' );

This comment has been minimized.

Copy link

@jotemo87 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