Title: PHP options?
Last modified: November 7, 2021

---

# PHP options?

 *  [Exo](https://wordpress.org/support/users/richardshea/)
 * (@richardshea)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-options/)
 * Hi, awesome plugin. But I can’t use my own PHP?
 * I’m trying this:
    $UserCountry = do_shortcode(“{ip:countryCode}”); if ($UserCountry
   === “GB”){echo “Hello UK Visitor!<br />”;}
 * But $UserCountry never seems to be a normal string in that example. It’s not 
   an array but outputs as “GB” in my tests.
 * Is there any options for coding in PHP and not using shortcodes which could be
   the issue?

The topic ‘PHP options?’ is closed to new replies.

 * ![](https://ps.w.org/ip2location-tags/assets/icon-128x128.png?rev=2121921)
 * [IP2Location Tags](https://wordpress.org/plugins/ip2location-tags/)
 * [Support Threads](https://wordpress.org/support/plugin/ip2location-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/ip2location-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip2location-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip2location-tags/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Exo](https://wordpress.org/support/users/richardshea/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-options/)
 * Status: not resolved