FYI: I have done extensive research on this topic.
I have a members only site running woo commerce.
1. I would like users to be redirected to the home page (http://mydomain.com) after login and registration. Currently users are directed to their account page.
The woocommerce site lists the following fix. However, I've had no luck with it.
/*
* goes in theme functions.php or a custom plugin
*
* By default login goes to my account
**/
add_filter('woocommerce_login_widget_redirect', 'custom_login_redirect');
function custom_login_redirect( $redirect_to ) {
$redirect_to = 'http://anypage.com';
}
2. Is there a way to moderate Registration. Meaning if a user registers, they are held in a queue until I can approve them.
Thank you kindly.