Display visitor IP address without any WordPress plugin - Display visitor IP address without any plugin

Display visitor IP address without any plugin

Here is how you can create a WordPress plugin with a shortcode to display the user’s IP address: <?php /* * Plugin Name: IP * Plugin URI: https://wpxss.com/application/ip * Description: Provides a shortcode to display the user’s IP address. * Version: 1.0 * Author: Stefan Pejcic * Author URI: https://pejcic.rs */ function ip_shortcode( $atts ) … Read full article →

Disable WordPress comments based on User GeoLocation - Disable WordPress comments based on User GeoLocation

Disable WordPress comments based on User GeoLocation

If you want to disable comments in WordPress based on the user’s location, you can do so by using the following steps: Step 1. Install and activate the “GeoIP Detection” plugin. This plugin allows you to detect the user’s location based on their IP address. Step 2. Add the following code to your theme’s functions.php … Read full article →

WooCommerce Change the Serbian Dinar currency symbol from рсд. to RSD. - 🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

For years WooCommerce was showing the Serbian currency as дин. but this was recently changed to рсд. and now Serbian currency is available in WooCommerce only in Cyrillic script (РСД). You’ll see more details here. But because the Serbian language can be written both in Cyrillic as well as in Latin script, and almost 100%, of … Read full article →

bypass cache wordpress - How to bypass cache and always view uncached content in WordPress

How to bypass cache and always view uncached content in WordPress

In most cases, the cache can be “tricked” by adding a random variable to the URL during testing, for example https://wpxss.com/application/wp-includes/how-to-bypass-cache-and-always-view-uncached-content-in-wordpress/?a=123 In this case, a new cache page is generated and does not load cached content that already exists.