Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function walker_nav_menu_start_el( $item_output, $item, $depth, $args ){
  2. if (is_array($item->classes)) {
  3. $classes = preg_grep( '/^(fa)(-\S+)?$/i', $item->classes );
  4. if( !empty( $classes ) ){
  5. $item_output = $this->replace_item( $item_output, $classes );
  6. }
  7. }
  8.  
  9. return $item_output;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement