Customizing logout redirection URL

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Customizing logout redirection URL

Viewing 2 reply threads
  • Author
    Posts
    • #13645
      Sugan Krishna
      Guest

      Hai, this is Sugan. I am working on a project of woocommerce and we used WC Frontend Manager – Ultimate for managing multi-vendor. We need support on how to change logout redirection URL, which mean “When a vendor logged out from WC Frontend Manager”, we need to redirect them to a specific URL. As, i am new to wordpress i couldnt find any help on this. Waiting for reply..

    • #13646
      Shhiv Narayan
      Keymaster

      Hi,

      Thanks for get in touch with us.

      I understand your concern and you may achieve this very easily.

      First, please delete and re-install your WCFM Free once (I have just added a filter for that so this step is required for now).

      Now add this code in your child theme “functions.php” –

      add_filter( 'wcfm_logout_url', function( $logout_url ) {
      	if( wcfm_is_vendor() ) {
      		$logout_url = 'http://localhost/wph/shop/';
        }
        return $logout_url;
      });

      You may set any value for “$logout_url” variable as per your requirement.

      If you required any further help feel free to reach us anytime.

      Thank You

    • #13695
      WCFM Forum
      Keymaster

      HI,

      Didn’t heard back form you!!
      Is this works for you?

      Thank You

Viewing 2 reply threads
  • The topic ‘Customizing logout redirection URL’ is closed to new replies.