• Resolved iteos

    (@iteos)


    Hello to everyone,
    I need to modifify DisplayName of Owner of PrivateFile.
    When i search a User to assign the file(s), in the dropdown showing username, but i've have 1000+ user and for me is very difficuolt search the user with username.
    I need to view the EMAIL, or, for the best solution USER_FIRST_NAME USER_LAST_NAME (USER_EMAIL)
    
    This is it possible?
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Foobar Studio

    (@foobarstudio)

    Hi,

    One way to do that could be to change the display name with a hook

    https://hookr.io/filters/get_user_display_name/

    Thread Starter iteos

    (@iteos)

    Thank for your response, but i don’t understand very well what i to do, because i don’t know php very well!
    Can you help me in other mode? For me is normal to search a user with email or first/last_name … i don’t know why the search is for username and not for another fields.
    Thanks in advance

    Plugin Contributor Foobar Studio

    (@foobarstudio)

    > For me is normal to search a user with email or first/last_name

    Because that information may be private and you may not want to allow everyone with access to the private area to find user emails.

    > Can you help me in other mode?

    No, sorry, PHP code will be the only way for you to change that behaviour. You may ask for help on websites more into development such as https://wordpress.stackexchange.com/

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Private File’ is closed to new replies.