SHARE
TWEET

Untitled

a guest Oct 21st, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mayak_nav_menu_no_link($no_link){
  2. $gg_mk = '!<li(.*?)class="(.*?)current_page_item(.*?)"><a(.*?)>(.*?)</a>!si';
  3. $dd_mk = '<li$1class="\\2current_page_item\\3">$5';
  4. return preg_replace($gg_mk, $dd_mk, $no_link );
  5. }
  6. add_filter('wp_nav_menu', 'mayak_nav_menu_no_link');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top