• Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
  • Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
home/Knowledge Base/Code snippets/Changing the page shown after logout

Changing the page shown after logout

839 views 2 April 13, 2021

By default, the user gets redirected to the login form after he logs out of the Customer Area. This can be changed to whatever page you want using this little function:

function cuar_get_custom_logout_redirect_url( $current_url = null, $redirect_slug = 'customer-dashboard', $redirect_url = null ) {
    return 'http://www.google.com';
}
add_filter( 'cuar/routing/logout-url', 'cuar_get_custom_logout_redirect_url', 10, 3 );
Tags:authentication

Was this helpful?

2 Yes  2 No
Related Articles
  • Custom admin notification’s recipients
  • Disable CSS resets and allow integration of third party plugins
  • Automatically add a user to a group
  • Changing the default page shown by the Customer Area
  • Sidebars: how to disable them
  • Detect if you are on a page in the customer area

Didn't find your answer? Contact Us

Knowledge base
  • Code snippets 25
  • Use cases 2
  • Community links 5
FAQ
  • About licences 7
  • Pre-sales questions 3
  • After-sales questions 1
  • Plugin usage 8
  • Technical questions 10
  • Payments 4
Documentations
  • Getting started
  • Using code snippets
  • The template system
  • Full documentation
Support
  • Pre-sales Enquiries
  • Main plugin support
  • Premium add-ons support
  • Feature Requests

  Sidebars: how to disable them

Changing the default page shown by the Customer Area  

  • Terms and conditions for sales
  • Refund policy
  • Privacy Policy
  • Legal notices
  • Copyright 2021 wp-customerarea.com. All Rights Reserved.