Skip to content

Instantly share code, notes, and snippets.

@femiyb
Created June 27, 2019 10:28
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 femiyb/b806d88fb7fbfa9ae79e012926b50200 to your computer and use it in GitHub Desktop.
Save femiyb/b806d88fb7fbfa9ae79e012926b50200 to your computer and use it in GitHub Desktop.
Allowing customer access to WP Admin if WooCommerce is active
/**
* 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