wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_destroy_current_session › WordPress Function

Since4.0.0
已弃用n/a
wp_destroy_current_session ( 没有参数 )
定义在:
文档:

Removes the current session token from the database.



源码

function wp_destroy_current_session() {
	$token = wp_get_session_token();
	if ( $token ) {
		$manager = WP_Session_Tokens::get_instance( get_current_user_id() );
		$manager->destroy( $token );
	}
}