Title: Can this engine be used on a PHP code level?
Last modified: August 30, 2016

---

# Can this engine be used on a PHP code level?

 *  [Jorge G](https://wordpress.org/support/users/jorge-g/)
 * (@jorge-g)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/can-this-engine-be-used-on-a-php-code-level/)
 * Hello,
    I’m looking for this functionality but not in a shortcode.
 * I need to restrict on a country basis some php code.
 * Is there a way I could wrap this PHP code with some of your code? The PHP I need
   to wrap looks like:
 * <script>
    xxx </script>
 * [https://wordpress.org/plugins/custom-content-by-country/](https://wordpress.org/plugins/custom-content-by-country/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/can-this-engine-be-used-on-a-php-code-level/#post-6280099)
 * Hi Jorge,
 * Yes, you can achieve this using the WordPress `do_shortcode()` function:
 * [https://codex.wordpress.org/Function_Reference/do_shortcode](https://codex.wordpress.org/Function_Reference/do_shortcode)
 * Hope that helps!

Viewing 1 replies (of 1 total)

The topic ‘Can this engine be used on a PHP code level?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-by-country.svg)
 * [Custom Content by Country (by Shield Security)](https://wordpress.org/plugins/custom-content-by-country/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-by-country/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-by-country/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-by-country/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-by-country/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-by-country/reviews/)

## Tags

 * [country](https://wordpress.org/support/topic-tag/country/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/can-this-engine-be-used-on-a-php-code-level/#post-6280099)
 * Status: not resolved