Answers for "get the current user id"

PHP
10

wp get logged in user id

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

find user id by username

client.users.cache.find(u => u.tag === 'Someone#1234').id
Posted by: Guest on July-16-2021

Code answers related to "get the current user id"

Browse Popular Code Answers by Language