• Resolved ibangallego

    (@ibangallego)


    Hi,

    I have private section for customers in my web page. If they go to home (exit of their private area) and they are not logged out, when customers come back to their private area and they are already logged in, this is the page that appears and I would like to modify:

    https://ovo.li/0rXtAF

    Is this possible? if yes, How can I do it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @ibangallego ,

    An example to achieving this is given below. Please add this code in your child theme’s functions.php file & change the url, text of the link according to your requirement

    add_action( 'wp_head', 'remove_logout_user_links' );
    function remove_logout_user_links(){
    	remove_action('um_logout_user_links', 'um_logout_user_links', 100 );
    	add_action('um_logout_user_links', 'um_custom_logout_user_links', 100 );
    }
    	function um_custom_logout_user_links( $args ) {
    		global $ultimatemember;
    
    	?>
    
    		<li><a href="your url here">This is the url text</a></li>
    		<li><a href="<?php echo esc_url( add_query_arg('redirect_to', $ultimatemember->permalinks->get_current_url(true), um_get_core_page('logout') ) ); ?>"><?php _e('Logout','ultimate-member'); ?></a></li>
    
    	<?php
    
    	}
    Thread Starter ibangallego

    (@ibangallego)

    it works perfect! Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘EDIT LOGGED IN PAGE’ is closed to new replies.