Custom comment link

You could try to add your own custom get_comment_link filter just before you call the wp_list_comments() function: // Modify comment links add_filter( ‘get_comment_link’, ‘wpse_comment_link’, 10, 4 ); // Display comments wp_list_comments( $args, $comments); where our callback is defined as: function wpse_comment_link( $link, $comment, $args, $cpage ) { // Only run it once remove_filter( current_filter(), __FUNCTION__ … Read more

Custom comment field not showing when logged-in

I’m not sure I fully understand your question, but to add some HTML (just over or under the submit field) that is visible to both logged-in and logged-out users, you can try the following: add_filter( ‘comment_form_submit_field’, function( $submit_field ) { //———————————– // Adjust the prepend to your needs //———————————– $prepend = ‘<p> Prepend some HTML … Read more

Get comment id of the individual comments in comment list when modifying comment posted using comment text filter

The comment_text filter passes the comment as one of its params: echo apply_filters( ‘comment_text’, $comment_text, $comment, $args ); So you don’t need to call get_comment_ID(), you can just access the ID from the $comment object. Change: add_filter( ‘comment_text’, ‘modify_comment’); to: add_filter( ‘comment_text’, ‘modify_comment’, 0, 3 ); And then: function modify_comment( $comment_text, $comment, $args ){ wp_enqueue_script( … Read more

Replying to comments

Comments automatically use credentials of logged in user. You have two options: Log out of your account and leave a comment like a regular user. Log in into different account via native means or use a plugin that allows you to switch between accounts.

How to create post comment from different domain

This quite rare setup so it is hard to recommend one way or another. Having worked with comments before I would recommend to stick with WordPress API functions (wp_insert_comment() and so on) for manipulating them. While DB structure is indeed simple you don’t account for all the hooks firing and other things that might be … Read more

How are readers authenticated for leaving comments?

By default passwords are encrypted using 8 passes of MD5. There are other ways to configure the password encryption. (https://codex.wordpress.org/Function_Reference/wp_hash_password) The hashes are based on custom keys setup in the wp-config file when creating the site. They are stored locally and not on WordPress.com You can make users register to leave comments or you can … Read more