add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_safe_redirect( home_url() );
exit;
}
This will do the trick.
Related Posts:
- How to change the default logout link on WordPress Admin
- handling login/logout redirects
- wp_logout_url() redirects to confirmation page even with nonce?
- Redirect user after logout
- After logout browser’s back button into twenty sixteen theme profile
- Logout without confirmation and SAME window on mobile
- How to redirect logged out users to specific page?
- How to redirect returning users who previously logged in?
- Conditional redirection with logout
- Custom, conditional redirect on logout
- Logging back into WordPress after logging out and having issues with ‘loggedout=true’ in redirect URL
- after logout, get_current_user_id still holds value
- WordPress Logout Redirect Follow up
- Redirect entire website to a single page
- Site redirects to wrong url when saving settings
- Redirect blog page to latest post?
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- Links to an exisiting Page are now redirecting to a draft page?
- Random and Erroneous WordPress Redirect
- Remove lost password form and URL
- add_rewrite_rule to pass entire path as a single parameter
- How To Only Allow Users To View Their Own Buddypress Profiles? [closed]
- htaccess redirect dynamic posts
- RedirectMatch and Redirect interfering with each other
- Menu links only using http after enabling https, unable to redirect http links
- Redirect all pages to homepage but still allow dashboard
- some url does not redirect from http to https
- Why can’t I access files / directories outside of wordpress
- Return to where the user was, after log out
- Change ‘Back To Website’ link in wp-login.php
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- htaccess rules not applied?
- Load time cost of using a redirect plugin v direct .htaccess entry
- Intercept the “lost password” action by first redirecting to an existing instructions page
- How to pass email values from one php page to another
- How to include error message on login
- Changing siteurl and homeurl – internal links redirect to home page?
- WooCommerce unexpected behavior [closed]
- redirect Login problems
- 301 redirection editing .htaccess doesn’t work
- Redirect custom post type from one domain to another domain
- 301-redirect directives for blogger to wordpress migration
- Some admin pages redirecting to front page on save
- Stop Redirecting to and from www
- Disable WordPress URL auto complete
- How do I put up a splash page and have all WordPress links redirect to this page?
- How can I disable author pages without 301 redirects?
- Redirect specific URL before other redirects take place in .htaccess?
- Redirect Main Home Page url to category URL without plugin
- W3 Cache redirects to front page when I press purge all caches
- Force 404 redirect to home?
- Is it possible to wp_redirect() to a new tab?
- Redirection on Custom page
- How do I redirect users after submitting a topic for moderation?
- Direct iPhone visitors to different stylesheet?
- How to delete a post and keep its slug to refer to another post
- 301 redirect any RSS feed on level up url
- Dynamic 404 page content while still keeping 404 status code?
- Redirect loop with similar URLs
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- 301 redirect via htaccess rules on the new site
- WordPress Domain redirects to different host
- Change the domain url?
- custom login form redirect problem
- WordPress redirect to new domain name
- Blog post is redirecting to home page
- Trying to re-direct users to specific page based on an ACF variable
- wp_redirect is only working in Chrome Network, page is not redirecting
- WordPress no permission redirection to a popup
- Open wordpress page in directory the way index.html would open
- How to remove redirection
- Redirect Homepage to another page when user login
- Site using static homepage, redirects (301) and removes pluses from query string
- Unusual Apache2 Error Causing WordPress Redirect Error?
- Redirect error after updating WordPress to 5.4.2
- Determine user destination on wp-login.php
- 301 Redirect Loop www to non-www – Nginx + Apache2
- how to redirect 404 to attachment.php?
- Disable WordPress URL auto Redirect
- Toggle Redirect Function On/Off With Checkbox
- My wordpress site has “https://” on it but when I go to Dashboard and click visit site, it removes the “https://”
- After disabling Multisite, homepage redirects to non-existing page
- I get “too many redirects” problem when migrating localhost site
- Internal redirect from page to category
- All links redirecting to homepage
- How to redirect non-admin/editors from specific pages?
- How to make a redirect link in wordpress?
- wp_redirect leading to an infinite loop
- Configure WordPress to listen on a port other than 80
- Do I need to keep the original page when 301 redirecting to a new one?
- I’ve move my site but URL still goes to the old site
- Redirect attachment URL
- Redirect based on $_GET parameters
- redirect users to the login page
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- Rewrite Rule working different than expected
- WordPress Redirecting Form Action to Home Page
- How to redirect non-logged in users to wordpress login page and bypass some page IDs?
- Is RewriteMod for WordPress site: site.ro -> site.com/?lang=ro possible?
- How can I redirect the user to the page they were on when they clicked “Lost Password” using “retrieve_password_message” filter
What’s Taking place i am new to this, I stumbled upon this I’ve found It positively
helpful and it has helped me out loads. I hope
to contribute & help other customers like its helped me.
Great job.