Posted By

alp on 06/06/11


Tagged

wordpress comments nofollow functionsphp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Kurt


Wordpress: Remove nofollow From Comments


 / Published in: PHP
 

URL: http://toscho.de/2009/no-no-no-nofollow/

  1. /**
  2.  * Remove nofollow From Comments
  3.  * http://toscho.de/2009/no-no-no-nofollow/
  4.  *
  5.  **/
  6. function myfunction_dofollow($str) {
  7. $str = preg_replace(
  8. '~<a ([^>]*)\s*(["|\']{1}\w*)\s*nofollow([^>]*)>~U',
  9. '<a ${1}${2}${3}>', $str);
  10. return str_replace(array(' rel=""', " rel=''"), '', $str);
  11. }
  12. remove_filter('pre_comment_content', 'wp_rel_nofollow');
  13. add_filter ('get_comment_author_link', 'myfunction_dofollow');
  14. add_filter ('post_comments_link', 'myfunction_dofollow');
  15. add_filter ('comment_reply_link', 'myfunction_dofollow');
  16. add_filter ('comment_text', 'myfunction_dofollow');

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: protar on August 17, 2019

For me, https://dltutuapp.com/tutuapp-download/ https://showbox.run/ https://kodi.software/ things are going good now.

Posted By: protar on August 17, 2019

For me, tutuapp kodi ShowBox life is great,

Posted By: jayarambro on September 8, 2019

Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!

Pubg APK Pubg Mobile APK Pubg
Pubg Download Download Pubg Mobile Pubg Mobile Download

Posted By: jayarambro on September 8, 2019

Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!

Blackmart APK thoptv apk GBWhatsApp APK
FMWhatsApp APK Ac Market APK TutuApp APK

You need to login to post a comment.