Integration in template file
-
Hi,
is there any option to add the upload of an avatar into a template file like this:
<?php
/**
* Account user.
*
* @package Flatsome/WooCommerce/Templates
* @flatsome-version 3.16.0
*/
?>
<div class="account-user circle">
<span class="image mr-half inline-block">
<?php
$current_user = wp_get_current_user();
$user_id = $current_user->ID;
echo get_avatar( $user_id, 70 );
?>
</span>
<span class="user-name inline-block">
<?php
echo $current_user->display_name;
?>
<em class="user-id op-5"><?php echo '#'.$user_id;?></em>
</span>
<?php do_action('flatsome_after_account_user'); ?>
</div>
- You must be logged in to reply to this topic.