您可以通过将第一个参数添加到comment_form 作用根据Codex, 下面的代码可能会有所帮助:
$comments_args = array(
// change the must log in text and link url
\'must_log_in\'=> \'<p class="must-log-in">\' . sprintf( __( \'You must be <a href="%s">logged in</a> to post a comment.\' ), YOUR_CUSTOM_LOGIN_PAGE_URL ) . \'</p>\'
);
comment_form($comments_args);
请相应地更改“YOUR\\u CUSTOM\\u LOGIN\\u PAGE\\u URL”。