jmlapam

Untitled

Jun 22nd, 2013
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );
  2. function remove_thumbnail_dimensions( $html ) {
  3. $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
  4. return $html;
RAW Paste Data