Codex tools: Log in
Returns the ID of the current user.
<?php $user_ID = get_current_user_id(); ?>
Since: Version 3.0
get_current_user_id() is located in wp-includes/user.php.
get_current_user_id()
wp-includes/user.php