WordPress remove attribut title in link


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.