SHARE
TWEET

Untitled

a guest Jun 9th, 2010 991 Never
  1. add_filter('walker_nav_menu_start_el', 'description_in_nav_el', 10, 4);
  2.  
  3. function description_in_nav_el($item_output, $item, $depth, $args)
  4. {
  5.         return preg_replace('/(<a.*?>[^<]*?)</', '$1' . "<span>{$item->post_content}</span><", $item_output);
  6. }
RAW Paste Data
Top