Home Forums Backend Issues (wp-admin) Cannot update field programmatically Reply To: Cannot update field programmatically

  • What does $order_id refer to? Is this the post ID of the order post?

    I don’t know that much about the part of WC that you are trying to alter, but the only other thing that I can think of is that the field you are trying to update does not match up with the value in $order_id.

    Either that or you are trying to update some type of sub field.