wp_nav_menu()函数输出内容控制 | 开发笔记
ckwen opened this issue · 0 comments
ckwen commented
https://www.dev996.com/wp-function-wp-nav-menu.html
去掉li多余的cssadd_filter('nav_menu_css_class', 'rm_css_attributes_filter', 100, 1);add_filter('nav_menu_item_id', 'rm_css_attributes_filter', 100, 1);add_filter('page_css_class', 'rm_css_attributes_filter