Skip to content

Instantly share code, notes, and snippets.

@mrtwebdesign
Created February 28, 2014 04:33
Show Gist options
  • Select an option

  • Save mrtwebdesign/9265306 to your computer and use it in GitHub Desktop.

Select an option

Save mrtwebdesign/9265306 to your computer and use it in GitHub Desktop.
Remove duplicate comment restriction. Useful when you really do need to repeat yourself on a regular basis.
add_action( 'preprocess_comment' , 'preprocess_comment_handler' );
$rf_success = remove_filter('commentdata','comment_duplicate_trigger');
if (!$rf_success) {
write_log ('remove duplicate comment filter failed');
}
@ovizii
Copy link

ovizii commented Nov 30, 2017

does not seem to work for me also getting an error about write_log being unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment