Last active
March 6, 2023 21:39
-
-
Save wp-user-manager/2a5decaaa9c4889f80550831c6b56f1e to your computer and use it in GitHub Desktop.
WPUM - Cover template for the profile which doesn't show the cover image but does show the avatar
This file contains 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 | |
/** | |
* The Template for displaying the profile cover. | |
*/ | |
// Exit if accessed directly | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
?> | |
<div> | |
<div id="header-avatar-container"> | |
<a href="<?php echo esc_url( wpum_get_profile_url( $data->user ) ); ?>"> | |
<?php echo get_avatar( $data->user->ID, 128 ); ?> | |
</a> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment