• Resolved gabrieluno

    (@gabrieluno)


    I have modified my wp_login.php, I use a shortcode to disconnect the user, the problem is that it shows the login url, does anyone know how to hide it?

    The function I use is the following;

    
    function custom_logout_link_func() {
                $return = wp_logout_url();?>
                <a href="<?php echo $return; ?>" class="btn btn-primary btn-xs btn-block" role="button" style="margin-bottom: 10px;">Logout</a>
                <?php
            }
             
        add_shortcode('logout_link', 'custom_logout_link_func');
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HIDE LOGOUT url wp-login.php’ is closed to new replies.