template = get_post_meta( $menu_item->ID, '_menu_item_template', true ); $menu_item->mega_template = get_post_meta( $menu_item->ID, '_menu_item_mega_template', true ); $menu_item->nolink = get_post_meta( $menu_item->ID, '_menu_item_nolink', true ); $menu_item->category_post = get_post_meta( $menu_item->ID, '_menu_item_category_post', true ); $menu_item->megamenu = get_post_meta( $menu_item->ID, '_menu_item_megamenu', true ); $menu_item->megamenu_auto_width = get_post_meta( $menu_item->ID, '_menu_item_megamenu_auto_width', true ); $menu_item->megamenu_col = get_post_meta( $menu_item->ID, '_menu_item_megamenu_col', true ); $menu_item->megamenu_heading = get_post_meta( $menu_item->ID, '_menu_item_megamenu_heading', true ); $menu_item->megamenu_widgetarea = get_post_meta( $menu_item->ID, '_menu_item_megamenu_widgetarea', true ); $menu_item->icon = get_post_meta( $menu_item->ID, '_menu_item_icon', true ); return $menu_item; } /** * Add custom megamenu fields data to the menu. * * @access public * @param object $menu_item A single menu item. * @return object The menu item. */ public function add_custom_fields( $id, $item, $depth, $args ) { ?>
object == 'category' ){ ?>