Added class to logout link

This commit is contained in:
James Koster 2012-05-01 10:39:19 +01:00
parent 3bfb91ca0c
commit 651612e8be
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ function woocommerce_list_pages($pages){
**/
function woocommerce_nav_menu_items( $items, $args ) {
if ( get_option('woocommerce_menu_logout_link')=='yes' && strstr($items, get_permalink(woocommerce_get_page_id('myaccount'))) && is_user_logged_in() ) :
$items .= '<li><a href="'. wp_logout_url(home_url()) .'">'.__('Logout', 'woocommerce').'</a></li>';
$items .= '<li class="logout"><a href="'. wp_logout_url(home_url()) .'">'.__('Logout', 'woocommerce').'</a></li>';
endif;
return $items;