So, I have following
<?php global $my_profile; ?> <?php if (is_user_logged_in()) : ?> <div class="img" data-key="profile"><?php echo get_avatar( get_current_user_id(), 64 ); ?></div> <?php endif; ?>
It pulls the profile picture of currently logged in user. I am trying to add this to one of the menu item title, so that user profile picture is shown as a part of the menu.
It looks like I cannot directly add this code into
What would be the best way to add this into one of the menu title?