Dear HivePress Support,
I am reaching out because I have added a new field (phone number) to the message submission form using the following code:
add_filter( 'hivepress/v1/models/message', 'custom_add_message_fields', 1000 );
add_filter( 'hivepress/v1/forms/message_send', 'custom_add_message_fields', 1000);
function custom_add_message_fields($form){
$form['fields']['custom_text_field'] = [
'label' => 'Custom field',
'type' => 'text',
'_external' => true,
'_order' => 10,
];
return $form;
}
add_filter(
'hivepress/v1/models/message/attributes',
function($attributes){
$attributes['custom_text_field'] = [
'editable' => true,
'edit_field' => [
'label' => 'Custom field',
'type' => 'text',
'_order' => 10,
]
];
return $attributes;
},
1000
);
Everything seems to be working correctly, but I am unsure where the value entered in this new field is actually stored. Specifically, I would like to know:
-
In which database table/column is the phone number stored (or the value entered in the custom_text_field), and how can I view or manage it within HivePress?
-
If there is a more efficient or recommended method to add and store custom fields, such as a phone number, that would better integrate with HivePress’s message structure.
Thank you in advance for your support. I look forward to your response.
Best regards,
Alessio