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



wp_destroy_all_sessions › WordPress Function

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

Removes all session tokens for the current user from the database.



源码

function wp_destroy_all_sessions() {
	$manager = WP_Session_Tokens::get_instance( get_current_user_id() );
	$manager->destroy_all();
}