Assign another role instead of Customer used by WooCommerce

WooCommerce automatically assigns to a new registered user the “Customer” role. What to do if you wish assign another role instead of Customer used by WooCommerce?
Thanks to WooCommerce developer for the intensive use of WordPress filters. There is a special filter ‘woocommerce_new_customer_data’ which allows to change such new registered user attributes as: user_login, user_pass, user_email, role. Read more Assign another role instead of Customer used by WooCommerce

User Role Editor Pro version 4.24.6

User Role Editor Pro version 4.24.6 was published at April 15, 2016.

Changes list

Core version: 4.25.1

  • Fix: Selected role’s capabilities list was returned back to old after click “Update” button. It was showed correctly according to the recent updates just after additional page refresh.
  • Update: deprecated function get_current_user_info() call was replaced with wp_get_current_user().