Support » Plugin: Letter Avatars » Suggestion for Color Lock

  • Right now it seems like the option to lock colours to a user is based on a single page load. Even with the option to lock colours enabled if I refresh the page the colours for each user will change.

    Is it possible to have is so that the colours returned for a given user are always the same, or for the plugin to write the colours to the usermeta table once set so that a user will always have the same colour at all times?

    So maybe in the “make_letter_avatar” function you can query the usermeta table, and if the avatar settings don’t exist you can create them and save them to the database.

Viewing 1 replies (of 1 total)
  • Plugin Author Sibin Grasic



    You solution would work only for the logged-in users.

    Might I suggest an alternative approach? Color selection based on an e-mail / username hash?

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion for Color Lock’ is closed to new replies.