add_action('appthemes_init', 'ntdi_do'); /** * Removes default 'insert_dropdown' function attached to 'walker_nav_menu_start_el' hook and add my own */ function ntdi_do() { remove_filter( 'walker_nav_menu_start_el', array('CP_Ads_Categories', 'insert_dropdown'), 10, 4 ); // this NTDI_Ads_Categories class is similar to CP_Ads_Categories but with the "insert_dropdown" function modified to my needs $menuCats = new NTDI_Ads_Categories(); add_filter('walker_nav_menu_start_el', array($menuCats, 'insert_dropdown'), 10, 4); }
There are currently 1 users browsing this thread. (0 members and 1 guests)