/** * Redirect wholesalers to custom page user after successful login. * * @param string $redirect_to URL to redirect to. * @param string $request URL the user is coming from. * @param object $user Logged user's data. * @return string */
how can i redirect my user just after login in woo-commerce plugin
`add_filter('woocommerce_login_redirect', 'wcs_login_redirect');
function wcs_login_redirect( $redirect ) {
$redirect = 'http://google.com/';
return $redirect;
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire