• Resolved pedromeneses197

    (@pedromeneses197)


    Hello,
    When a user is logged in on the website, and if for somereason they got redirrected by a link to another website and they hit the back button on the browser they come up to a login page with “My Account” and “Logout” i wanted to add another

    • tag for a page on my website.
      Is this possible? and if so, where can i edit it.
      Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pedromeneses197

    You can override this hook by removing it first:
    remove_action( 'um_logout_user_links', 'um_logout_user_links', 100 );

    and then add your own.

    add_action( 'um_logout_user_links', 'um_custom_logout_user_links', 100 );
    function um_custom_logout_user_links(){
    ?>
             // YOUR ADDITIONAL CODE HERE
    
    	<li>
    	<a href="<?php echo esc_url( um_get_core_page( 'account' ) ); ?>">
    	<?php _e( 'Your account', 'ultimate-member' ); ?>
    	</a>
    	</li>
    	<li>
    	<a href="<?php echo esc_url( add_query_arg( 'redirect_to', UM()->permalinks()->get_current_url( true ), um_get_core_page( 'logout' ) ) ); ?>">
    	<?php _e( 'Logout', 'ultimate-member' ); ?>
    	</a>
    	</li>
        
            // YOUR ADDITIONAL CODE HERE
    
    	<?php
    }
    

    Regards,

    Thread Starter pedromeneses197

    (@pedromeneses197)

    Solved. Thank you!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pedromeneses197

    Thanks for letting us know. I am closing this thread now.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login Page Customize’ is closed to new replies.