User avatar-ACF fields
Question
I'm running wp multisite and using ACF custom field (user edit) for my local avatar, in my functions.php i added :
add_action('get_avatar', 'tsm_acf_profile_avatar', 10, 3);
function tsm_acf_profile_avatar( $avatar, $id_or_email, $size, $default, $alt ) {
$user = '';
// Get user by id or email
if ...
0
advanced-custom-fields, avatar, plugin-development, user-meta, wpdb
5 months
0 Answers
61 views