Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display current user ID in WordPress
<?php
echo 'The current logged in user ID is: '.get_current_user_id();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.