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 654
Change Log:
M:
U
Introduced in WordPress:
—
Deprecated in WordPress:
—
Description
Gets the current user's ID.
Related Functions
set_current_user
,
get_currentuserinfo
,
wp_get_current_user
,
get_current_network_id
,
_wp_get_current_user
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
1
wp_print_auto_sizes_contain_css_fix
My Bookmarks
- Soon -
About
Imprint
Privacy Policy