Posted By

FlashBuddy on 08/20/13


Tagged

tips wordpresspage titletool


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fhenderson


WordPress Remove Tool Tips and Title Attributes


 / Published in: PHP
 

One crazy designer felt that the title attributes and image alt tool tips were a detraction to his perfect design. This snippit remove images alt="" and href title="" meta.

  1. function fb-remove_title($input) {
  2. return preg_replace_callback('#\stitle=["|\'].*["|\']#',
  3. '$matches',
  4. 'return "";'
  5. ),
  6. $input
  7. );
  8. }
  9. add_filter('wp_list_pages','fb-remove_title');

Report this snippet  

You need to login to post a comment.