Hello,
I have the following code in functions.php:
add_filter( ‘wp_nav_menu_items’, ‘wti_loginout_menu_link’, 9996, 2 );
function wti_loginout_menu_link( $items, $args ) {
if ($args->theme_location == ‘primary’) {
if (is_user_logged_in()) {
global $current_user; get_currentuserinfo();
$items .= ‘
- ‘. __(“Log Out”) .’
- Edit Profile
- ’. __(“Log In”) .’
- Register ’;
} else {
$items .= ‘
}
}
return $items;
}
It works fine until I try to assign a pro header. Whan a ro header is assigned, the additional items do not show up at all. Is there a way to use the above code with a pro header?
Thanks,
Geoff