Last active
August 29, 2015 14:23
-
-
Save wpweb101/fffafeff8fe43398b098 to your computer and use it in GitHub Desktop.
Woo PDF vouchers - vendor can redeem all voucher codes
This file contains hidden or 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 | |
| function woo_vou_vendor_can_redeem_all_codes( $roles = array() ) { | |
| $roles[] = 'shop_manager'; | |
| // you can add this code if you want to allow vendor role to check all voucher codes and other report pages | |
| //$roles[] = 'woo_vou_vendors'; | |
| return $roles; | |
| } | |
| add_filter( 'woo_vou_assigned_admin_roles', 'woo_vou_vendor_can_redeem_all_codes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment