Different base avatar picture per role
-
Hello everyone!
I’m trying to assign a different base avatar picture per role.
I normally use this code to customize the basic avatar image.add_filter( 'avatar_defaults', 'wp_new_gravatar' ); function wp_new_gravatar ($avatar_defaults) { $myavatar = 'https://MYSITE/my-icon.gif'; $avatar_defaults[$myavatar] = "Default Gravatar"; return $avatar_defaults; }
In this case I would need to add a different image per role.
I can’t enter the string that controls the role.
Do you have an idea how to do this?Thank you very much
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Different base avatar picture per role’ is closed to new replies.