-
-
Save fervous/da00cf82774fce288b032bf019e1017c 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