<a href="<?php echo esc_attr(wp_logout_url('http://example.com/goodbye/')); ?>">logout</a>