-
parent : Comments can be replies to other comments. Every comment has an ID number. When the comment is a reply, then it will have a “parent” which is the ID of the comment it is replying to. Putting a comment ID in here will get all the replies to that comment.
-
post_parent : Posts can be children of other posts as well. This is how things like hierarchical pages work. Putting an ID in here will get all the comments that are made to all the child posts of that ID.
-
fields : Determines what comment fields you want to get back. If you only want the Comment IDs, for example, you would put “ids” here.
-
include_unapproved : Whether to include unapproved comments or not. True/false.
-
comment__in : An array of comment IDs that you want to get.
-
post__in : An array of post IDs that you want to get the comments of.
Related Posts:
- “comments.php” not available after edit in WP administration
- WordPress comment submit button substitutes/options
- Fetching Initials of the Commentator in the WordPress Website
- get_comments_number() returns 0
- How to pass parameters in wordpress shortcode?
- Display the list of user’s comments + the post title + date
- Display user’s total comment count outside The Loop
- Facebook Comment Count
- Getting the comment number relative to all the post’s comments
- How to output a permanently delete comment link?
- count number of user comments with a specific comment meta value
- Change comments form title on a page by page basis
- How do I make wordpress comment fields required?
- How do I create comment-reply-button using element not
- How do I know what variables are passed in a filter/action and what their meaning is?
- How to check if comments are paginated?
- Notify WordPress Site I Have Linked To Them
- Add “last” and “first” to WordPress Comment Pagination Links
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Replace comment avatars and links at the same time
- Automatically generate Post/Page from searched Database item?
- Adding ads code between comments
- Returning a value from a PHP page
- How do I fetch all comments per post via WP REST API?
- comments_number display outside specified span
- Trying to implement Ajax comments in WordPress, getting WP error
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- Show comments menu in dashboard only if the site has comment
- User’s total comment count excluding comments on their own posts
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Get value from shortcode to do something
- Show wp_die if url form comment not emply
- Why does my callback function not work with this custom filter hook?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- How to implement a rating and review system for WordPress custom posts?
- Ajax load more button for comments wordpress
- edit_comment_link is not showing for comment author
- Limit 1 global comment per minute
- Create Page To Count Comments For Each Post In WordPress Site
- comments sorting incorrectly across multiple pages
- Commenting out unwated CSS/scripts in HTML with PHP
- wp-comments-post.php file returns a blank page
- php function to display commenter username or login
- Genesis framework comments broken?
- check if comment submitted was successful
- Alter required message using comment form api
- Get post id within comments loop
- How to list commenters and days since last commented
- How to add text to the start of all comments?
- Appended comments but they show up above the content instead of below
- get comment data using comment id
- Removing the comment function within wordpress
- Where is this function’s callback getting its arguments from?
- wp_delete_comment takes two tries to delete – then deletes all comments
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- I’m unable to call img path using single quotes in an array?
- How can I include the user id inside of a shortcode php output?
- Restrict characters in comment section
- Conditionally load class in the comment section of the post page
- How to get comment_ID by post_ID in wordpress
- Comment_author_url doing nothing
- Fatal error: Cannot redeclare comment_theme()
- I don’t have comments.php… how do I customize my comment fields
- How to pass username in affiliate link in wordpress website
- Unable to display multiple parameters from url by javascript through shortcodes
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- Add custom field on admin dashboard comments / reviews
- Show all people who commented on all posts by an author
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- Show data obtained from a function and place it in a shortocode function
- Get posts from year from URL
- Comments on my custom post type
- Fetch commens from a specific post
- Closing Comments conditionally in comments.php
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- How do I make comment-reply-button with that takes to comment reply form on click
- How to add delete, approve, spam Links to Comments
- Real time notification on user profile after new comment
- What’s the correct offset value for order ASC?
- How can I output the slug of a comment author?
- How can I enqueue comment-reply script only on certain page?
- Loop 1 user randomly
- How to change this internal image link parameter using PHP?
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- Getting most popular posts based on Facebook comments count
- A Space being added to url generated by custom plugin
- WordPress – show number of comments for each post in widget
- How does add_action ‘comment_post’ work?
- Custom action on comment post
- WordPress most commented posts of last X days
- How do I call comments_template(); from a plugin file?
- How to get the rating value of each comment
- Trouble figuring out how to get my button to submit comment
- How to convert my comment.html to comment.php
- Shortcode to include PHP file, pass various parameters to include?
- Guests comment form – prevent duplicate email addresses
- Permissions error when I use my plugin to delete comments in the front-end
- User registration followed by automatic login
- wp_insert_user role not working