WordPress Tutorials

How to Display a User’s IP Address in WordPress

Recently one of our users asked us if it was possible to detect and display individual visitors’ IP address in WordPress. Our answer was of course it is. In this article, we will show you how to display user’s IP address in WordPress.

How to Display a User’s IP Address in WordPress

You can use this to create your own IP detection site. This way when a website visitor views your site, they can see their own IP address.

All you have to do is paste the following snippet in your theme’s functions.php file or in a site-specific plugin.


Article written by dudecmsadmin


Hi there! I`m admin of community where I share everything from web. Im interested more in webdesign.

Leave a Reply

Your email address will not be published. Required fields are marked *

Regular Labs(NoNumber) Extensions are ready for download!
Download Now