Created
August 24, 2015 05:30
-
-
Save wpweb101/4f418f32c053d5ccedbe to your computer and use it in GitHub Desktop.
Add any role as a voucher vendor role.
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_add_role_as_voucher_vendor( $roles = array() ) { | |
| $roles[] = 'wc_vendor'; | |
| return $roles; | |
| } | |
| add_filter( 'woo_vou_edit_vendor_role', 'woo_vou_add_role_as_voucher_vendor' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment