After activating this function, nobody will be able to access wp-admin or wp-login.php , you can choose the page to redirect the users or will be redirected to the "My Account" page of WooCommerce by default.