function redirect_if_logged_in_forgot_pw() {
if ( is_user_logged_in() ) {
wp_redirect( 'https://kock.nu/members/me/' );
exit;
}
}
add_action( 'template_redirect', 'redirect_if_logged_in' );
Inget konto ännu?
Registrera dig här!