Menu
wpseek
mobile
Search
get_current_user_id
get_current_user_id
(
No parameters
)
Returns:
(int) The current user's ID, or 0 if no user is logged in.
Defined at:
wp-includes/user.php
, line 620
Change Log:
M:
U
Introduced in WordPress:
—
Deprecated in WordPress:
—
Description
Get the current user's ID
Related Functions
set_current_user
,
wp_get_current_user
,
get_currentuserinfo
,
get_current_network_id
,
_wp_get_current_user
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
6
wp_cron_conditionally_prevent_sslverify
wp_is_https_supported
wp_is_owned_html_output
wp_is_using_https
wp_schedule_https_detection
wp_update_https_detection_errors
My Bookmarks
- Soon -
About
Imprint
Privacy Policy