How to Logout WordPress and Redirect to Current Page

We can do like this:

<a href="<?php echo wp_logout_url( get_permalink() ); ?>">Logout</a>

,