How To Disable HTML in WordPress Comments

If you don’t want users to post HTML in comments on your site, you can post the code below into your WordPress theme’s functions.php file:

/* Disable Hyperlinks in WordPress Comments */
remove_filter('comment_text', 'make_clickable', 9);
add_filter('pre_comment_content', 'strip_comment_links');

function strip_comment_links($content) {

global $allowedtags;

$tags = $allowedtags;
$content = addslashes(wp_kses(stripslashes($content), $tags));

return $content;

Other Helpful Articles

Online Generator for Writing a Privacy Policy

Many websites need a privacy policy page. WordPress actually has a pre-built privacy policy page that users can edit. However, editing what they give you can be a little overwhelming. Also, most developers usually don’t have clients edit any pages yet while they’re building the site to avoid any mess

Read More »

What is Webmail?

What is webmail? Webmail is usually a free cloud-based email service that is set up on your hosting. You can use webmail by having a professional-looking email address such as, “” and it’s usually at no additional cost. You can also have a professional-looking email with an email client such

Read More »