Blog Placholder Image WooCommerce Redirect After Logout

WooCommerce Redirect After Logout

Today we are going to talk about WooCommerce Redirect After Logout. Many times, we need to redirect the user to specific pages like a Home page or any other page. Here, we will talk about how to provide a redirect option to the user after logout on a specific page in WooCommerce.

Below is an example:

add_action('wp_logout','qaisarsatti_logout_redirect');

  function qaisarsatti_logout_redirect(){

    wp_redirect( 'redirect URL here' );
   
    exit;

  }

Search

Recent Blogs

Categories

Archives

Archives

Tags