Posted By

chrisaiv on 09/19/14


Tagged

wordpress


Versions (?)

Wordpress: Disable HTML in Wordpress comments


 / Published in: PHP
 

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

You might need to strip out HTML in comments and here's how.

  1. /** ******** ******** ******** ******** ******** ******** ******** ********
  2. * TITLE: Disable HTML in WordPress comments
  3. * DESCRIPTION: Disallow HTML in WordPress comments, add this snippet to your functions.php file.
  4. *
  5. * http://www.labnol.org/internet/wordpress-optimization-guide/3931/
  6. */
  7. add_filter( 'pre_comment_content', 'wp_specialchars' );

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Himanshumishra12 on September 24, 2018

Many many thanks to the author for such knowledgeable article, Here on our website you will get the best spider solitaire that you get on your browser homepage without any pay.

You need to login to post a comment.