Hi all,
I am using the Wp-members plugin and I am trying to send my users to a certain URL when they click log out. The developer gave me the following code to input and I added it to the Actions and Filters area in Weaver Xtreme Plus. I am running latest WordPress and latest Weaver Xtreme. Appreciate any help as I really haven’t got a clue why this isn’t working. The developer says something else must be jumping into the process.
add_action( ‘wp_logout’, ‘my_logout_redirect’, 1 );
function my_logout_redirect() {
// return the url that the logout should redirect to
wp_redirect( ‘https://ally-law.com/referral-reporting’ );
exit();
}
Appreciate any help getting this to work!