Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress programmatically logout

wp_destroy_current_session();
wp_clear_auth_cookie();
wp_set_current_user( 0 );
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #programmatically #logout
ADD COMMENT
Topic
Name
1+3 =