Created
December 4, 2016 04:45
-
-
Save digitalchild/271cc5834b8a42a82c4bb7a4111dc82f to your computer and use it in GitHub Desktop.
Allow shop managers access wp-admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Allow shop managers to access wordpress admin | |
// WILL ONLY WORK FOR v1.3.8 and below. THIS WILL BREAK in v1.4.0. | |
add_filter( 'wcv_admin_lockout_capability', 'allow_shop_managers'); | |
function allow_shop_managers( ){ | |
return 'manage_woocommerce'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment