Want more features on Pastebin? Sign Up, it's FREE!
Guest

Wordpress custom image linking within <li> element

By: Lanti on Jan 4th, 2013  |  syntax: PHP  |  size: 0.25 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. add_filter('get_image_tag', 'lanti_get_image_tag', 10/*prio*/, 6/*number of arguments*/);
  2. function lanti_get_image_tag($html, $id, $alt, $title, $align, $size)
  3. {
  4.         $elotte = '<li>';
  5.         $utana = '</li>';
  6.         $html = $elotte . $html . $utana;
  7.         return $html;
  8. }
clone this paste RAW Paste Data