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