wordpress use logout url in menu code example Example: wordpress logout link <a href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>