WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39123, comment 7


Ignore:
Timestamp:
06/29/2017 10:58:46 AM (2 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39123, comment 7

    initial v1  
    77- huh, `nickname` isn't in the REST API.
    88
    9 -  I'm currently forcing `nickname` (in the usermeta table) to be `user_login` with no `nickname` / `display_name` changes allowed. To do this I hook into the `insert_user_meta` filter - doing it this way is necessary because of https://core.trac.wordpress.org/changeset/34505. I'm mentioning that because I'm not sure how other people do the same thing or if they do. This could be a case where I'm `_doing_it_wrong()`. I can fix mine to work with whatever if you give me a hook, that's not a problem, but it might be worth seeing how other people handle it and if we need to worry about the nickname field.
     9-  I'm currently forcing `nickname` (in the usermeta table) to be `user_login` with no `nickname` / `display_name` changes allowed. To do this I hook into the `insert_user_meta` filter - doing it this way is necessary because of [34505]. I'm mentioning that because I'm not sure how other people do the same thing or if they do. This could be a case where I'm `_doing_it_wrong()`. I can fix mine to work with whatever if you give me a hook, that's not a problem, but it might be worth seeing how other people handle it and if we need to worry about the nickname field.