Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: User logout without confirmation? #7526
    Southside
    Participant

    Thank you! I will test that.

    The code I found when I googled was short and had a different approach, adding nonce (if I understand correct).
    I do not know if this code is better/safer, or if it is working the way I need. Maybe I test both.

    /**
     *  Add nonce to logout URL in navigation
     */
    
    function add_logout_url_nonce($items){
      foreach($items as $item){
        if( $item->url == '/wp-login.php?action=logout'){
             $item->url = $item->url . '?redirect_url=/&_wpnonce=' . wp_create_nonce( 'log-out' );
        }
      }
      return $items;
    
    }
    
    add_filter('wp_nav_menu_objects', 'add_logout_url_nonce');
    
    in reply to: Not logged in users will not save to menu #4125
    Southside
    Participant

    I am glad it was a bug and not me going crazy 😉
    So problem was not user settings or non-logged-in, but the fact I had two menu items with the same name/title (but different slug). Looking forward to the update!

    Thank you for taking the time to solve the problem.

    in reply to: Problem with Content aware sidebars? #4070
    Southside
    Participant

    Vladimir: feel free to delete this question if you want to, as the question is wrong and we now have fixed this via email.

    If someone else wants to know: After more testing I found out there is No problem with URE and the sidebars. But there are a small incompatibility with the plugin Nextend Accordion Menu, and Vladimir will fix that.

    Problem solved.

    in reply to: Export user names and emails list? #3460
    Southside
    Participant

    Worked perfect! Thank you.

    in reply to: Export user names and emails list? #3418
    Southside
    Participant

    Thank you! We will try that.

    Sorry I forgot, is it possible to also get the date when the user was registrered?

    in reply to: Prohibit access for visitors #1431
    Southside
    Participant

    Thanks! That would be a great little timesaver.

Viewing 6 posts - 1 through 6 (of 6 total)