• la flore de Caseneuve

add_filter( 'preprocess_comment', 'wpb_preprocess_comment'); function wpb_preprocess_comment($comment){ if (strlen($comment['comment_content'])>5000 ){ wp_die('Comment is too long.'}; if (strlen($comment['comment_content'])<10 ){ wp_die('Comment is too short.'}; return $comment;}