
WordPress函数文件Functions.php教程指南:定义、使用、替代方案及实例
apply_filters( 'wp_get_current_commenter', compact( 'comment_author', 'comment_author_email', 'comment_author_url' )
wp_get_current_commenter:此函数用于检索当前评论者的姓名、电子邮件和 URL。此信息在预填写评论表单时非常有用,因为它可以通过记住他们之前评论中的信息来节省用户时间。
过滤当前评论者的姓名、电子邮件和网址。
return apply_filters( 'wp_get_current_commenter', compact( 'comment_author', 'comment_author_email', 'comment_author_url' ) );