wp_logout_url isn’t forwarding to correct link

The issue is you pointing entirely unrelated (from WordPress point of view) domain to WP site.

When WP processes logout the redirect is performed by wp_safe_redirect(), which disallows to redirect user “outside” the site. Since it has no clue about your custom domain that link is simply discarded.

I would advise to properly set up your new domain for the site, otherwise you will keep having issues from it.

Leave a Comment