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