SHARE
TWEET

Untitled

a guest Jun 9th, 2010 1,093 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top