Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created September 29, 2015 07:41
Show Gist options
  • Save mikejolley/d724f58d84f1cb98ca32 to your computer and use it in GitHub Desktop.
Save mikejolley/d724f58d84f1cb98ca32 to your computer and use it in GitHub Desktop.
WooCommerce - Disable the non-admin access to dashboard feature
<?php
// Add the below line to your theme functions.php file
add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment