Custom Fields
Support MB User Profile Duplicate fields on the backend

  • Creator
  • #13722
    Resolved Infolu

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
  • #13729

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

    Thank you


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


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

    Anh Tran


    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 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.