[ad_1]
I would like to indicate to the users who comment in the comments as “Member” if they are registered and “Guest” if they are guests. I’ll add this below the author name, to the right of the date. If it is the Author, nothing will happen, I will label those other than the author as I said above. Here is the code currently used by the theme:
<?php
global $post;
if ( $comment->user_id === $post->post_author && get_theme_mod( 'author_label' ) != 'no' ) {
echo '<span>' . esc_html__( 'Post author', 'mission-news' ) . '</span>';
if ( get_theme_mod( 'comment_date' ) != 'no' ) {
echo ' | ';
}
}
if ( get_theme_mod( 'comment_date' ) != 'no' ) {
comment_date();
}
?>
How can I do what I want?