Limit the character amount of review

Hi!

Could you please provide a snippet to limit how long a review is allowed to be? Basically a limit to 500 character eg.

Thank you a lot!

Hi,

Please try this PHP snippet:

add_filter(
 'hivepress/v1/forms/review_submit',

 function($form){
  $form['fields']['text']['max_length'] = 500;

  return $form;
 },

 1000

);

Please note that you may require additional customizations in the future.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.