Guest User

Untitled

a guest
Mar 23rd, 2017
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
  2. function add_login_logout_link($items, $args) {ob_start(); wp_loginout('index.php'); $loginoutlink = ob_get_contents(); ob_end_clean(); $items .= '<li>'. $loginoutlink .'</li>'; return $items; }
RAW Paste Data