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