- This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Logout Redirect Hook
Would it be possible for you to add a hook for when the member logs out, to enable us to set the pages to be redirected to on logout (similar to redirecting after login). We are using the plugin with the WPML plugin and need to redirect members to the logout page in their own language. Currently is is only possible to redirect to a single logout page.
I am the developer working for the client. Are you able to reply or copy to [nik@shortiedesigns.com]?
Many thanks.
Nik
We already have the following action hook that gets triggered after a member logs out.
emember_logout_complete
Example code below (showing how to use this hook):
add_action('emember_logout_complete', 'custom_after_logout');
function custom_after_logout(){
//Do something here.
}
So you can use the above hook to do your custom after logout tasks.
Let me know if that helps.
Great – thank you.