0
After the user fills in a registration form, this form goes through all validations, the data needs to be entered in the table wp_users, The function below is doing that role in my THEME:
$user_id = wp_insert_user( apply_filters( 'noo_create_user_data', $new_user ) );
So far so good, but a new column was created (user_cnpj) in the table and it is necessary that the CNPJ informed by the user is registered in this field.
What would be the best way for me to store this data correctly?
Obs.: Currently the field user_cnpj exists in the table, but the record is being stored as NULL, because of the wp_insert_user
, the other fields are guarding the fields correctly.