# How to alter the links in the already logged in template

URL: https://wpusermanager.com/article/312-how-to-alter-the-links-in-the-already-logged-in-template/
Last updated: 2026-10-15

WPUM uses a template called **already-logged-in.php**. It is what a logged-in user sees when they visit the login page:

![The already logged in message on the login page, with links to the profile, account and logout](https://p-d0FK22zG.t2.n0.cdn.getcloudapp.com/items/12uzAkPD/201b1835-3bae-477a-af5b-bc0a522089b2.jpeg?v=fe892b69c66be0bf4a96614418c666d4)

To remove or change the links it shows, use the **wpum\_already\_logged\_in\_links** filter. The links are keyed `profile`, `account` and `logout`. This example removes the account link:

```
<?php

add_filter( 'wpum_already_logged_in_links', function ( $links ) {
	unset( $links['account'] ); // either profile, account, logout

	return $links;
} );
```

The snippet is also available as a [gist](https://gist.github.com/wp-user-manager/d0c64cf3c96e315aa321fc2913228e0a). It needs **WP User Manager 2.8.11 or above**. Save it to a file in your `/wp-content/mu-plugins/` directory (create the mu-plugins directory if it doesn't exist).
