Answers for "how to get user info wordpress"

PHP
14

wp get logged in user id

<?php
	$user_id = get_current_user_id();
?>
Posted by: Guest on April-14-2020
-1

logout all the users from site wordpress

Generate new salt and key for wordpress and replace with the old one which will
forcefully logout all the logged in users.
https://api.wordpress.org/secret-key/1.1/salt/

https://www.greengeeks.in/tutorials/article/completely-force-logout-users-wordpress/#:~:text=Using%20the%20WPForce%20Logout%20Plugin&text=Then%20in%20the%20%E2%80%9CBulk%20Actions,%E2%80%9CLogout%20All%20Users%E2%80%9D%20button.
Posted by: Guest on March-31-2021

Code answers related to "how to get user info wordpress"

Browse Popular Code Answers by Language