Disable saving comment details (name, e-mail) in cookie?

That is actually dead simple. Cookies are set by wp_set_comment_cookies() and this function is hooked into 'set_comment_cookies'. Just remove the function from the action:

<?php # -*- coding: utf-8 -*-
/* Plugin Name: No Comment Cookies
 */
remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );

Download on GitHub.

Leave a Comment