Answers for "logout page wordpress"

PHP
0

wordpress logout link

<a href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>
Posted by: Guest on February-24-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

Browse Popular Code Answers by Language