Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created March 21, 2016 11:13
Show Gist options
  • Save mikejolley/d4c46102d69d4560abb6 to your computer and use it in GitHub Desktop.
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