• Resolved jakevoelcker

    (@jakevoelcker)


    This code is not working:

    function your_function() {
        wp_redirect("https://google.com") ;
    }
    add_action('switch_to_user', 'your_function');

    The switch_to_user hook does not seem to be firing. (User switching is working correctly, it’s just not redirecting to google.com)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘switch_to_user hook not working’ is closed to new replies.