Thanks, but to trust 3rd party plugin for a task like that is not acceptable.
if you decided that admin can not change vendor profile image – thats ok.
but my question was HOW TO GET THE IMAGE in code / elementor.
as it’s been few days with no solution, i wrote my own widget tag plugin for that. something i think you need to provide these days when elementor users are growing in millions…
here is my code, to get vendor profile image in elementor shop template:
$vendor_id = get_the_author_meta(‘ID’);
$wp_user_avatar_id = get_user_meta( $vendor_id, $wpdb->get_blog_prefix($blog_id).’user_avatar’, true );
$wp_user_avatar = wcfm_get_attachment_url( $wp_user_avatar_id );
if ( !$wp_user_avatar ) {
$wp_user_avatar = apply_filters( ‘wcfm_defaut_user_avatar’, $WCFM->plugin_url . ‘assets/images/user.png’ );
}
return [
‘id’ => $wp_user_avatar_id,
‘url’ => $wp_user_avatar
];