How to put the author of the post in the comments?

Not sure it’s the shortest way, but it works) Get post author id $post_author_id = get_post_field( ‘post_author’, $c->comment_post_ID ); Get author data by id $post_author_display_name = get_the_author_meta( ‘display_name’, $post_author_id ); Try this shorter version $output.= get_the_author_meta( ‘display_name’, get_post_field( ‘post_author’, $c->comment_post_ID ) ); Check documentation page which data is available with get_the_author_meta()

Modify “Must be logged in to comment” text/links?

The text, “You must be logged in to post a comment.” comes from this line in WordPress: https://github.com/WordPress/WordPress/blob/efaf4a8938bbeb8510c8e1e4cc6fe84a434c17c3/wp-includes/comment-template.php#L2449 Whenever you see something wrapped in the double underscore function __( ), it means it’s a translatable string. You can use a function like this and add it to your themes functions.php file: add_filter(‘gettext’, ‘change_comment_logged_in_notice’, 20, 3); … Read more

Changing the Comment Fields using Filter (without success)

Your code has 2 major issues: It’s missing a return $fields; or a return value — Filter callbacks must always return something, which is normally the first parameter after it’s filtered (regardless it’s actually modified or not by your callback). Do not call comment_form() because comment_form_fields is fired in that function, hence you’ll run into … Read more