• Resolved aviann

    (@aviann)


    Hi there!
    Using the update_field() function for the table field does not work with users. I had to solve this issue by modifying the plugin code with the following:

    // try user_meta
    if ( empty( $data ) ) {
    $data = get_user_meta( str_replace('user_', '', $post_id ), $field['name'], true );
    }

    I added it under the “// try term_meta” block and it fixed the issue. Could you please look into it and fix this when you have a chance? Or perhaps I was doing something wrong and there is a correct way to update this type of field for users?
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Johann Heyne

    (@jonua)

    Hi, thanks for the great issue report. I will fix this in the next release. But it will take up to two weeks before I can release the fix in the next release.

    Cheers,
    Johann

    Thread Starter aviann

    (@aviann)

    Hi Johann! Great, thank you

    Plugin Author Johann Heyne

    (@jonua)

    The new version 1.3.30 with the fix is released. I hope that works for you.

    Cheers,
    Johann

    Thread Starter aviann

    (@aviann)

    Thank you Johann! This is perfect

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

The topic ‘update_field does not work with users’ is closed to new replies.