Definition:
function get_current_user_id() {}
Get the current user’s ID
Return values
returns:The current user’s ID
Source code
function get_current_user_id() { $user = wp_get_current_user(); return ( isset( $user->ID ) ? (int) $user->ID : 0 ); }
1346
No comments yet... Be the first to leave a reply!