当然,您可以创建自己的条件标记,这基本上是使用@Abhik建议的:
Code:
function is_comment_by_registered_user( $comment_ID = 0 ) {
if ( empty( $comment_ID ) )
$comment_ID = get_comment_ID();
$comment = get_comment( $comment_ID );
$comment_user_id = $comment->user_id;
if ( $comment_user_id > 0 ) :
return true;
else :
return false;
endif;
}
注:未测试