Answers for "wordpress programmatically logout user"

PHP
1

wp wordpress logout

<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>
Posted by: Guest on June-30-2021
0

wordpress programmatically logout

wp_destroy_current_session();
wp_clear_auth_cookie();
wp_set_current_user( 0 );
Posted by: Guest on December-09-2020

Code answers related to "wordpress programmatically logout user"

Browse Popular Code Answers by Language