Advertisement
gerald_wpcustoms

hwstring

Nov 28th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. function image_hwstring_px($width, $height) {
  2.           $hwstring = '';
  3.         if ($width)
  4.                  $hwstring .= 'width="'.intval($width).'px" ';
  5.          if ($height)
  6.                  $hwstring .= 'height="'.intval($height).'px" ';
  7.          return $hwstring;
  8.  }
  9. apply_filters('get_image_tag','image_hwstring_px');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement