Add Custom Fields to the WordPress Comment Form with Comment Meta
Add a rating field to the WordPress comment form with comment meta Comments have their own meta table, which works like post meta: add_comment_meta(), update_comment_meta(), get_comment_meta(). With it the comment form can collect more than a name, an email and a text: a rating, an RSVP answer, a topic. WooCommerce product reviews are built exactly…