4 Responses to “How to add user custom field in My Account page in Woocommerce?”

  1. chua says:

    you can load the custom field data using the function below and echo it wherever u like:-
    $birthdate = get_user_meta( $user_id, ‘birthdate’, true );

  2. chua says:

    just duplicate the fieldset content and change the field name to your field name.
    and remember to add in the newly added field name at the my_woocommerce_save_account_details function.

  3. bozo says:

    Good code – But how display in the frontend profile ?

  4. Henry says:

    Great tutorial! How would you add more than one field? Would I need to put all the fields in an array or so? For example. I need address1, address2, state, zip, phone

    Thanks in advance

Leave a Reply