Posted By

aquelito on 10/29/11


Tagged

wordpress remove title


Versions (?)

WordPress remove attribut title in link


 / Published in: PHP
 

  1. // Remove attribut title
  2. function opt_remove_title_attr($return){
  3. $patterns = array(0=>'# title=\"(.?)\"#',1=>"# title='(.?)'#");
  4. return preg_replace($patterns, '',$return);
  5. }
  6.  
  7. add_filter('wp_nav_menu', 'opt_remove_title_attr');
  8. add_filter('wp_page_menu', 'opt_remove_title_attr');
  9. add_filter('wp_list_categories', 'opt_remove_title_attr');
  10. add_filter('wp_list_pages', 'opt_remove_title_attr');
  11. add_filter('wp_tag_cloud', 'opt_remove_title_attr');
  12. add_filter('get_archives_link', 'opt_remove_title_attr');

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: aquelito_ on October 13, 2012

addfilter('wpgetattachmentlink', 'themeremovetitleattr'); addfilter('wpgetattachmentimage', 'themeremovetitleattr'); addfilter('wpnavmenu', 'themeremovetitleattr'); addfilter('wppagemenu', 'themeremovetitleattr'); addfilter('wplistcategories', 'themeremovetitleattr'); addfilter('wplistpages', 'themeremovetitleattr'); addfilter('wptagcloud', 'themeremovetitleattr'); addfilter('wpgetarchives', 'themeremovetitleattr'); addfilter('getarchiveslink', 'themeremovetitleattr'); addfilter('postthumbnailhtml', 'themeremovetitleattr');

You need to login to post a comment.