Categories
Trik WordPress

Menghapus Auto Link di Komentar

Jika ada pengunjung yang memberi komentar ke blog anda dan di dalam komentarnya mengandung URL, maka WordPress secara otomatis akan melakukan perubahan kode sehingga URL itu menjadi tautan dan bisa di klik.

Hal ini bagi sebagian orang kurang menarik karena bisa menganggu penampilan komentar dan bisa jadi ladang bagi para spammer untuk menebarkan tautan. Nah, dengan sedikit trik, kita bisa membuat agar komentar yang mengandung URL dibiarkan seperti adanya dan tidak ditambahkan link apa-apa

Caranya mudah banget. Tinggal memasukkan kode ini di file functions.php yang ada di themes WordPress anda. Kalau belum ada, silahkan membuatnya dulu ya

remove_filter('comment_text', 'make_clickable', 9);

Mudah-mudahan bermanfaat dan semoga anda dijauhkan dari godaan spammer-spammer yang terkutuk.. šŸ™‚

By Lutvi

Bukan Ustadz, bukan Dai apalagi Kyai. Juga bukan guru. Hanya sekedar santri miskin ilmu yang coba mengamalkan 1 ayat warisan dari para ulama. Saat ini diamanahi menjadi admin web WordPress Indonesia

14 replies on “Menghapus Auto Link di Komentar”

I simply want to tell you that I am newbie to blogging and site-building and absolutely loved you’re web-site. Most likely Iā€™m planning to bookmark your website . You really have amazing well written articles. Thanks a bunch for sharing with us your website page.

I do not even know how I ended up here, but I thought this post was great. I do not know who you are but definitely you’re going to a famous blogger if you are not already šŸ˜‰ Cheers!

I am not assured where you’re getting your information, but enormous topic. I wants to spend some time learning much additional or understanding extra. Thankfulness for great in rank I was looking for this information for my mission.

I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one today..

Attractive section of content. I just stumbled upon your web site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I will be subscribing to your augment and even I achievement you access consistently rapidly.

An interesting discussion is worth comment. I do think that you ought to write more about this topic, it may not be a taboo subject but typically people do not speak about such issues. To the next! Cheers!!

Comments are closed.