Support » Plugin: Easy Hide Login » Cannot logout

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello?

    Nobody from the plugin team reply here. I am also facing same issue

    BUG FIX LOGOUT

    SEARCH AND REMOVE TO PLUGIN EDIT

    //logout url
    add_filter( 'logout_url', 'easy_hide_logout', 10, 2 );
    function easy_hide_logout( $logout_url) {
    
        return home_url();
    }

    🙂

    The solution goes sth like this…

    It respects our calls to wp_logout_url( $redirect ) and defaults all other non-requested logout redirects to home.

    //logout url
    add_filter( 'logout_url', 'easy_hide_logout', 10, 2 );
    function easy_hide_logout( $logout_url, $redirect ) {
      if ( !empty( $redirect ) ) {
        return $logout_url;
      }
      else {
        return add_query_arg( 'redirect_to', $logout_url, home_url() );
      }
    };
    • This reply was modified 2 years, 7 months ago by  .
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot logout’ is closed to new replies.