Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created March 21, 2016 11:13
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mikejolley/d4c46102d69d4560abb6 to your computer and use it in GitHub Desktop.
WooCommerce - Allow non-admin access to backend, and enable admin_bar
/* Code goes in theme functions.php */
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