Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Log out redirect

Home / Forums / Virtue Theme / Log out redirect

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
September 11, 2016 at 3:38 pm

I am using WP-Member plug in. Can’t see to find a way to have the log off button be a simple redirect to homepage.

I currently have the submenu “log off” with a redirect to homepage. Yet, can’t figure out how to do what the plug in tech person says to do.

Here is some code they have. But know there is something missing or coded wrong.
They say that by default log off redirects to homepage, but can’t figure out how with using a menu button on the primary nav bar. I submitted this to plug in; no reply as yet. Any help appreciated.

add_filter( ‘wpmem_logout_redirect’, ‘my_logout_redirect’ );

function my_logout_redirect()
{
// return the url that the logout should redirect to
return ‘ ’;
}

  • The forum ‘Virtue Theme’ is closed to new topics and replies.