Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created December 8, 2015 11:32
Show Gist options
  • Select an option

  • Save wpweb101/d16bebbad0afe4ef2824 to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/d16bebbad0afe4ef2824 to your computer and use it in GitHub Desktop.
Edd Points and Rewards - Restrict Seller
<?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