Created
December 8, 2015 11:32
-
-
Save wpweb101/d16bebbad0afe4ef2824 to your computer and use it in GitHub Desktop.
Edd Points and Rewards - Restrict Seller
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 to allow sellers to get points even if they are the owner of the product | |
| * | |
| * @param array $roles | |
| * @return $roles | |
| */ | |
| function edd_points_restrict_seller_roles( $roles ) { | |
| $roles[] = 'administrator'; | |
| return $roles; | |
| } | |
| add_filter( 'edd_points_restrict_seller', 'edd_points_restrict_seller_roles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment