wordpress programmatically logout

65

wp wordpress logout -

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

wordpress programmatically logout -

wp_destroy_current_session();
wp_clear_auth_cookie();
wp_set_current_user( 0 );

Comments

Submit
0 Comments