wp_cache_logout_all() WPSCache 1.0
No Hooks.
Return
Null. Nothing.
Usage
wp_cache_logout_all();
Code of wp_cache_logout_all() wp cache logout all WPSCache 1.7.1
function wp_cache_logout_all() {
global $current_user;
if ( isset( $_GET[ 'action' ] ) && $_GET[ 'action' ] == 'wpsclogout' && wp_verify_nonce( $_GET[ '_wpnonce' ], 'wpsc_logout' ) ) {
$user_id = $current_user->ID;
WP_Session_Tokens::destroy_all_for_all_users();
wp_set_auth_cookie( $user_id, false, is_ssl() );
update_site_option( 'wp_super_cache_index_detected', 2 );
wp_redirect( admin_url() );
}
}