WP-Members – Logout Redirect to Homepage did not work
-
I just downloaded WP-Members today. I really like the plugin so far, but I can’t get the logout to redirect to the homepage. I followed the code below given by you, Chad, in your instructions. The login portion worked, but the logout did not. Any ideas what could be the problem?
add_filter( ‘wpmem_login_redirect’, ‘my_login_redirect’, 10, 2 );
function my_login_redirect( $redirect_to, $user_id ) {
// return the url that the login should redirect to
return ‘http://www.ataitec.net/’;
}add_filter( ‘wpmem_logout_redirect’, ‘my_logout_redirect’ );
function my_logout_redirect()
{
// return the url that the logout should redirect to
return ‘http://www.ataitec.net’;
}
- The topic ‘WP-Members – Logout Redirect to Homepage did not work’ is closed to new replies.