Hi there Team HP
I refer a snippet on the GitHub depository titled Remove the text field from reviews #hivepress reviews. Remove the text field from reviews #hivepress #reviews · GitHub
<?php
add_filter(
'hivepress/v1/forms/review_submit',
function( $form ) {
unset( $form['fields']['text'] );
return $form;
},
1000
);
add_filter(
'hivepress/v1/models/review',
function ( $model ) {
$model['fields']['text']['required'] = false;
return $fields;
},
1000
);
The snippet doesn’t just remove the text field, it also removes the rating stars which is what we’re try to use as we would like it to just be a ratings system.
Before snippet.
After snippet.