With this you can intervene in the sent fields via the feedback form. You can also add your own fields, which will then be saved in the database.
$fields: name, email
$session: Everything that is actually stored in a session can be found in this optional variable.
/**
* This can be used to edit sent fields.
*
* @param array $fields submitted fields.
* @param array $session submitted session data.
*
* @return array
*/
add_filter('helpful_feedback_submit_fields', function (array $fields, array $session) {
return $fields;
}, 10, 2);
Was this helpful?
Vote now and show me if you like or helped the content. After that, you can also leave feedback if you have a few more words to say.