themology

Smart export : change the role of the customers to export.

May 2nd, 2015
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. //this piece of code is to put in the functions.php file in your theme
  2.  
  3. add_filter('wcse_user_role', 'export_custom_user_role');
  4. function export_custom_user_role($role)
  5. {
  6.         //change to the role you want
  7.         return 'subscriber';
  8. }
Add Comment
Please, Sign In to add comment