Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function walker_nav_menu_start_el( $item_output, $item, $depth, $args ){
- if (is_array($item->classes)) {
- $classes = preg_grep( '/^(fa)(-\S+)?$/i', $item->classes );
- if( !empty( $classes ) ){
- $item_output = $this->replace_item( $item_output, $classes );
- }
- }
- return $item_output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement