/ Published in: PHP

Disallow HTML in WordPress comments, add this snippet to your functions.php file.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** ******** ******** ******** ******** ******** ******** ******** ******** * TITLE: Disable HTML in WordPress comments * DESCRIPTION: Disallow HTML in WordPress comments, add this snippet to your functions.php file. * * http://www.labnol.org/internet/wordpress-optimization-guide/3931/ */ add_filter( 'pre_comment_content', 'wp_specialchars' );
URL: http://www.labnol.org/internet/wordpress-optimization-guide/3931/
Comments
