WordPress.org

Ready to get started?Download WordPress

Forums

Hide comment email from non-admins (4 posts)

  1. loenne
    Member
    Posted 6 months ago #

    I have a question about comment notification

    When someone posts a comment there are sent 2 emails - one to me as Admin and one to the author.

    However, the email sent to authors contains the email address of the person making the comment.
    Since most of our authors are 3rd party people I can't have email addresses shown to them - seems like a huge breach of privacy.

    How can I hide email addresses from people making a comment from all emails sent?

    Authors can also see the email in wp-admin, when editing their own posts. Can I remove it from there as well?

  2. Tara
    Member
    Posted 6 months ago #

    Since most of our authors are 3rd party people I can't have email addresses shown to them

    No, WordPress does not have this ability to hide emails. If authors have access to edit posts, then they also have access to edit comments as well. There is no separate capability for this.

    There is this plugin: http://wordpress.org/plugins/adminimize/

    But, it has not been updated recently.

    Perhaps you can get some idea from its source code.

  3. bcworkz
    Member
    Posted 6 months ago #

    loenne, you are right, there is a serious privacy issue depending on who a site's authors are. Altering the email message is simple enough, but Tara is right, there is no mechanism to hide just the email fields on admin screens. You could alter the capabilities so authors cannot access comment related admin screens at all. You could even add in custom admin screens that do not display email data. You are to some extent rewriting the admin interface in doing this.

    Another possibility would be to store a phony email on the comments table, then store the real email on commentmeta. While it's difficult to control visibility of default fields, control is much easier for custom fields and columns. The fields and columns showing the true email can only be shown to true admin users, while authors can only see the phony email.

  4. nickohrn
    Member
    Posted 6 months ago #

    This sounds like an interesting problem. Are you still looking for a solution to this? I might be able to build something for you.

Reply

You must log in to post.

About this Topic