Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mayak_nav_menu_no_link($no_link){
- $gg_mk = '!<li(.*?)class="(.*?)current_page_item(.*?)"><a(.*?)>(.*?)</a>!si';
- $dd_mk = '<li$1class="\\2current_page_item\\3">$5';
- return preg_replace($gg_mk, $dd_mk, $no_link );
- }
- add_filter('wp_nav_menu', 'mayak_nav_menu_no_link');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement