Here is the answer given by Ferman on wpfr.net
function date_commentaire( ){
$comments = get_comments( array( 'post_id' => get_the_ID() ));
if ( doing_action( 'wp_ajax_get-comments' ) )
foreach ( $comments as $comment ) :
$a = $comment->comment_ID;
$b = get_comment_ID();
$date_comment = get_comment_date();
$time_comment = get_comment_time();
if ( $a==$b )
echo '<p class="commentaire-date">'.'Commentaire N°: '.$comment->comment_ID.' du: '.$date_comment.' à '.$time_comment.'</p>';
endforeach;
return $comment_author_url;
}
add_filter( 'get_comment_author_url','date_commentaire');
Works great. I just pasted it into functions.php child theme instead of using the advised plugin.
Related Posts:
- Display commenter’s registration date on comments?
- Exclude Duplicate Posts in this SELECT Query
- In wp_list_comments comment dates won’t work?
- Disable comments on all posts/pages
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Linking to Page Showing Only Comments Without Parent Post
- Post Comments using WP REST API v2 in WordPress
- Show content only if member left a comment
- Using filter to add additional fields to comment_form()
- Disable wordpress comments API
- List Recent Comments from Across a Multi-site Network
- Comments waiting but no comments found
- Programmatically block commenting by restricting view of comment form
- Disqus over the default commenting engine, what are some pros and cons?
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Plugin from WordPress.com for comment notification…available? [closed]
- How to add text to comment form #content textarea?
- Get most active users sort by comment count
- Passing arguments to wp_list_comments callback function
- What are the additional fields in wp_comments used for?
- comments_template not working correcly in custom template files
- Why are my comments closed?
- Block comments from search engine indexing
- Create a “Reject” action for comments?
- How to change style of Disqus comment count on main page
- Adding another arg to comments_popup_link
- List User Comments on User Profile BuddyPress [closed]
- Changing “submitted on date” of comments
- Filter custom comment type from Manage Comments & Dash Widgets
- How to allow more HTML tags in comment for a certain comment_type
- How to deal with spam comments and distinguish them from non-spam comments?
- How to add a strip of visual editor on top of comments textarea
- Threaded comments not working
- Customizing comments pagination for bootstrap
- comment_post action hook running on page load instead of after a comment is posted
- Error While Sending Comment
- How to get all comment authors of a single post?
- Get return value of wp_insert_comment (comment ID)
- comment_reply_link not work with me
- have_comments() does not work
- How to use the ‘comments_number’ filter?
- How to allow duplicate comments AND without comment text
- Remove the deleted user comment
- How do i hide all comments from logged out users
- Show Social Sharing Buttons And Facebook Comments In Lightbox Modal Dialog (Image Overlay)?
- Cannot post comments if I don’t post a website?
- How Do I Allow Comment Moderation for Other User’s Posts?
- How to display custom comment fields onto any page
- Make every comment go to the spam folder
- Limit number of comments from get_comments()
- Correct way to retrieve comment attributes for desired results
- The comment could not be saved. No comment_ID on comments
- how to remove WordPress default comment system
- ‘comment_post’ hook doesn’t seem to work? [closed]
- After submit comments select the current tab
- count number of all comments by a user on different (non-repeated) posts
- Facebook comments widget – App ID
- Comments screen in backend, how to disable visual editor when replying to a comment
- Genesis Child Theme Modifying Comments display
- Hide Trackbacks/Pingbaks if none exists
- Adding a comment link to the top of every post
- WordPress comment reply link image
- Comment Pagination
- See some statistics about the comments
- Custom comment types. Are they a possibility?
- Comment form in wordpress theme returns a javascript alert
- How to output comments in Descending order by date using wp_list_comments?
- Embedding local video in WordPress comments
- Update post “A” on comment submition on post “B”
- Using Disqus with headless WordPress setup?
- Attaching author tag to the comment
- Pre- Approved Comment Capability
- Delete comments function
- Comment form not working
- How to show a “Comments Are Closed” message on posts where comments have been closed?
- Comments pagination on author page
- Comments page id wp_list_comments
- Inserting comments via a procedure
- spacebar is not working in input and textarea
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- Conditionally process comments while ignoring replies
- Required Field for Comment parent only?
- Can I use WP comments for custom tables?
- How can I have a full comments.php for an easy editing of all its aspects?
- Transfer comments from one domain to another
- WordPress is adding above html
- Passing user meta through comment form
- writing a plugin, how to disable the comment form altogether?
- What filter or action to replace comments or add new comment system
- Function to get a list of all comments on 1 post [closed]
- Display DISQUS on homepage
- Auto delete WordPress comments
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me