Change default new role in WooCommerce

 
    function my_new_customer_data( $new_customer_data ){
        $new_customer_data['role'] = 'candidate';
        return $new_customer_data;
    }
    add_filter( 'woocommerce_new_customer_data', 'my_new_customer_data');

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This