Created
September 14, 2022 17:17
-
-
Save wp-user-manager/d0c64cf3c96e315aa321fc2913228e0a to your computer and use it in GitHub Desktop.
WP User Manager - Remove links from the Already Logged In template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wpum_already_logged_in_links', function ( $links ) { | |
unset( $links['account'] ); // either profile, account, logout | |
return $links; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works in WP User Manager v2.8.11+
Save this file to your /wp-content/mu-plugins/ directory (you might need to create the mu-plugins directory).