Hi,
I have added a function to snippets, to hopefully change woomcerce’s defualt user role. Users when loggd in cant submit listings, they have to be an “Author” and woomcerce is by default giving the role “customer”
This is the snippet i have added to the site, and still nothing.
function my_new_customer_data($new_customer_data){
$new_customer_data[‘role’] = ‘Author’;
return $new_customer_data;
}
add_filter( ‘woocommerce_new_customer_data’, ‘my_new_customer_data’);
Any ideas?