Disable link in comment form WordPress
A couple months ago, I had post about how to disable external link in post content. A this time I will show you how to disable all link in comments form without plugin. You know, too many spammer on the net, most of them fill your comment box with hundred comments and links. Here step by step how to disable link in comment for WordPress blog:
1. Open you functions.php (Theme Functions) file in your theme.
2. Put this code on the top after code <?php
remove_filter('comment_text', 'make_clickable', 9);
add_filter('comment_text', 'wp_filter_nohtml_kses');
add_filter('comment_text_rss', 'wp_filter_nohtml_kses');
add_filter('comment_excerpt', 'wp_filter_nohtml_kses');
3. Save it.
All is done. Now you can test your comment form. Have work!
Related Posts
Tags: comment form, Disable link, Spam, WordPress Plugin





