WordPress.org

Support

Support » How-To and Troubleshooting » Get current user id in plugin

Get current user id in plugin

  • How can I get current user id in plugin? I tried to use $current_user->ID but it doesn’t work (works fine in template files). Any other way?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Get current user id in plugin’ is closed to new replies.