Questions tagged [comment-meta]
The comment-meta tag has no usage guidance.
11
questions
1
vote
2
answers
19k
views
Add Comment Custom Field
I searched a lot of thread regarding my problem, but unfortunately I found nothing works, and this my final option. I want to add some custom fields on my comment form. How can I do that?
1
vote
2
answers
2k
views
count number of user comments with a specific comment meta value
I am using the code below to count the number of comments by a certain user:
global $wpdb;
$count = $wpdb->get_var(
'SELECT COUNT( comment_id ) FROM '. $wpdb->comments .'
...
11
votes
1
answer
1k
views
Find out which moderator approved comment?
Is there any way to find out what moderators have approved a comment, and then display that information on the front-end?
e.g.
John says: "This is a great article"
- Approved by Admin1
4
votes
2
answers
2k
views
Running a function on comment status change
I am making a review system where i need to find update rating average when:
A comment gets approved from pending/trash/spam.
A comment gets upapprove from approve
A admin post reviews (auto approved)...
3
votes
1
answer
8k
views
Is it possible to show custom comment metadata in the admin panel?
I've customized my comment form with a new field (city, but that doesn't really matter). I've hooked and filtered and added my comment metadata with add_comment_metadata.
I want to show that metadata ...
2
votes
1
answer
3k
views
Upload images with comment
EDIT: I finally got the right answer; see my own answer beneath this post for everyone that's interested.
After searching for a couple of days and trying over and over again I really got stuck.
I'...
2
votes
1
answer
3k
views
Add a drop down list to comment form?
Can somebody help me to create a drop-down menu or (radio buttons) in Wordpress comment form, so that a new user could make a selection of their user roles (for example teachers + students) ?
Output ...
0
votes
3
answers
2k
views
What are the additional fields in wp_comments used for?
I'm working on a rather odd implementation that stretches the limits of WP a little - its a healthcare site where patients are a custom post type and procedure requests related to each patient are ...
0
votes
1
answer
71
views
How to put this result inside that result?
I want my comment results to put inside anoher result.
I want this result
$args = array(
'post_id' =>$post->ID,
'status' => 'approve',
...
0
votes
1
answer
479
views
An action hook where a comment meta is updated
By analogy to the hook on post meta update, I use the following code for hooking when comment meta value is updated.
My comment meta key is "consider" and can have 2 values: 0 and 1.
My Goal is to ...
0
votes
1
answer
394
views
Display comment meta data after quick update
I have few custom comment field - phone, stored as comment meta.
On comments edit page (edit-comments.php) I display this value in custom column. I also display these values on post edit page (post....