wp_cache_logout_all()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_cache_logout_all();
wp_cache_logout_all() wp cache logout all code WPSCache 1.12.4
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() ); } }