Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Dj Kad
    Participant

    @dj-kad

    In my case i’ve found that mails were sent but classified as spam.
    Unfortunatelly some mail servers are blacklisted by some ISP for spamming reasons.
    I’m looking for solve this problem because people that want to register in my site are unable to receive properly the activation code sent by email.
    For now i change the output message shown in the registration process, alerting people to check into the spam folder, but hope to solve it in a better way


    Dj Kad
    Participant

    @dj-kad

    I made this: Add this code at the end of functions.php file included in your theme.
    It adds “Login – Register” or “Logout” buttons to your nav menu:

    
    add_filter('wp_nav_menu_items','add_login_buttons');
    function add_login_buttons ($nav){
    if ( is_user_logged_in() ) {
    return $nav."<li id='menu-item-10' class='menu-item menu-item-type-post_type menu-item-object-page'><a href='".wp_logout_url( home_url() )."'>Exit</a></li>";
    }
    else {
    return $nav."<li id='menu-item-51' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-51'><a href='http://www.sitename.com/loginpage'>Login</a></li><li id='menu-item-51' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-51'><a href='http://www.sitename.com/registerpage'>Sign Up</a></li>";
    }
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar