Duplicate fields on the backend

Support MB User Profile Duplicate fields on the backendResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13722
    Infolu OfficialInfolu Official
    Participant

    Hello friends, I am creating a page on the front end for user data to be updated, I know that to show default fields I have to register a new rwmb_meta_boxes while keeping the ids of the names field biography, but in doing so I have a duplicate box in the back -end, and this is a problem, because having fields with the same id when updating a field for veses in the back end does not save by having a second field with the same id unchanged, or need to find a way to display fields user patterns only on the front end. Any idea for that?

    #13729
    Infolu OfficialInfolu Official
    Participant

    Staff solved this using get_current_screen() the before $metabox []

    Thank you

    #13730
    Infolu OfficialInfolu Official
    Participant

    The only thing I could not bring forward is the user-language user-language-wrap select any idea for that?

    #13731
    Infolu OfficialInfolu Official
    Participant

    Another field I need to bring forward is the Public Display Name select. and also the Sessions button

    #13744
    Anh TranAnh Tran
    Keymaster

    Hi,

    Good trick on get_current_screen()!

    Regarding the user language, the field ID (for user meta) is locale. However, the list of options you need to make by yourself.

    The display name has the field ID display_name.

    The "Sessions" button is just a simple button and you can do that with button field. However, to make sure it works like WordPress, you have to do the code to log out from everywhere by yourself.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.