Return to Snippet

Revision: 64538
at August 20, 2013 06:38 by FlashBuddy


Initial Code
function fb-remove_title($input) {
  return preg_replace_callback('#\stitle=["|\'].*["|\']#',
    create_function(
      '$matches',
      'return "";'
      ),
      $input
    );
  }
add_filter('wp_list_pages','fb-remove_title');

Initial URL


Initial Description
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.

Initial Title
WordPress Remove Tool Tips and Title Attributes

Initial Tags


Initial Language
PHP