I want to redirect users to account details after registering, by default it is redirecting to my account dashboard.
This is where I want users to be redirected
mydomain.com/my-account/edit-account/
I found something like this, but I think it won't work
function iconic_register_redirect( $redirect ) {
return wc_get_page_permalink( '' );
}
add_filter( 'woocommerce_registration_redirect', 'iconic_register_redirect' );