in

Programmatically Adding Comment Metadata from JavaScript (iandunn.name)

Programmatically Adding Comment Metadata from JavaScript

TL;DR:

JavaScript side: Add hidden input fields named myplugin_comment_meta[‘foo’] to the commentform element. Example.

PHP side: Add preprocess_comment filter callback and add $_POST[‘myplugin_comment_meta’] array items to the comment_meta array in the returned value. Example.

Leave a Reply

NextGEN Gallery vs Envira Photo Gallery vs FooGallery - Which is the Best WordPress Image Gallery Plugin?

NextGEN Gallery vs Envira Photo Gallery vs FooGallery – Which is the Best WordPress Image Gallery Plugin? (wpallclub.com)

Should You Be Wary of WordPress Page Builders?

Should You Be Wary of WordPress Page Builders? (wpmayor.com)