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