Return to Snippet

Revision: 67365
at September 13, 2014 10:44 by chrisaiv


Initial Code
/** ******** ******** ******** ******** ******** ******** ******** ******** 
* 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' );

Initial URL
http://www.labnol.org/internet/wordpress-optimization-guide/3931/

Initial Description
Disallow HTML in WordPress comments, add this snippet to your functions.php file.

Initial Title
Wordpress: Disallow HTML in Comments

Initial Tags
wordpress

Initial Language
PHP