• Resolved thisislebanon

    (@thisislebanon)


    I was not able to find a way to remove the ability to make Private/encrypted comments. Could a feature be added in the admin to remove that checkbox from the comment box for front-end users?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Meitar

    (@meitar)

    That’s a good idea. I’ve added it to the issue tracker.

    Plugin Author Meitar

    (@meitar)

    I took a look at this again and I realized that I actually added this feature using a WordPress filter, which means it’s just as easily removable. Just add the following line at the end of your theme’s functions.php file:

    
    remove_filter( 'comment_form_submit_field', array('WP_PGP_Encrypted_Emails', 'renderCommentFormFields') );
    

    And that’s it. So, I’m not going to change the code for this plugin, you can just do the following if you want to remove the “Private” field from the comment fields after installing this plugin.

    Thread Starter thisislebanon

    (@thisislebanon)

    Thanks, problem solved. Might be good to add to the docs page as well.

    Plugin Author Meitar

    (@meitar)

    Meh. Probably. Submit a patch. ?? Meanwhile, that’s what this thread is for.

    Hey Meitar,

    please add a checkmark to disable this feature! Would be really great.
    (And maybe you could change the default to “not” use this option. To be honest, I was really irritated that public comments on my blog got PGP encrypted…)

    Thanks a lot for your plugin!
    Johannes

    belleisle

    (@belleisle)

    I second that request from Johannes Weber : please enable the user to simply activate or deactivate this feature. I find the plugin good but this feature is annoying.

    Just as a reminder, editing functions.php is not good practice, since it will be written over when updating the theme. Therefore the proposed solution requires creating a child theme. Pretty heavy for such a simple feature.

    Fortunately I was able to use a workaround: hiding the block by editing my additional CSS, like so:

    .comment-form-openpgp-encryption {
    	display: none;
    	visibility: hidden;
    }
    Plugin Author Meitar

    (@meitar)

    And maybe you could change the default to “not” use this option. To be honest, I was really irritated that public comments on my blog got PGP encrypted…

    The default has always been not to encrypt comments.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable Comment Encryption Option’ is closed to new replies.