Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Customizing logout redirection URL
- This topic has 2 replies, 3 voices, and was last updated 7 years, 2 months ago by WCFM Forum.
- AuthorPosts
- September 24, 2017 at 9:33 am #13645Sugan KrishnaGuest
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..
- September 24, 2017 at 10:01 am #13646Shhiv NarayanMember
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
- September 26, 2017 at 6:52 am #13695WCFM ForumMember
HI,
Didn’t heard back form you!!
Is this works for you?Thank You
- AuthorPosts
- The topic ‘Customizing logout redirection URL’ is closed to new replies.