Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @norbertk

    There are errors in the gist code. For example an error on saving occurs here:

    $submitted = array_map( 'sanitize_text_field', $_POST[$name] );

    PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given

    I recommend you to enable debug logging if you write a custom code. Seeing errors in the log helps a lot.

    Do you want to add the Mobile Number (mobile_number) field to the first tab Account? Use a solution described in this article: How to display pre-defined fields in Account

    You can use a free extension Ultimate Member – Account tabs to display more fields in Account. This extension can create custom account tabs and can embed a profile form into the custom account tab.

    Regards

    Thread Starter norbertk

    (@norbertk)

    The Account tabs extension is just what I’m looking for!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom fields not updating’ is closed to new replies.