Skip to content

Instantly share code, notes, and snippets.

@fervous
Forked from digitalchild/functions.php
Created February 17, 2017 22:37
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 fervous/da00cf82774fce288b032bf019e1017c to your computer and use it in GitHub Desktop.
Save fervous/da00cf82774fce288b032bf019e1017c to your computer and use it in GitHub Desktop.
Allow shop managers access wp-admin
<?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