Title: Does get_query_var() work in php exec?
Last modified: August 21, 2016

---

# Does get_query_var() work in php exec?

 *  [tim227](https://wordpress.org/support/users/tim227/)
 * (@tim227)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/does-get_query_var-work-in-php-exec/)
 * I’ve got a url query string “?users=a”, and I expected the function get_query_var(‘
   users’) to simply return “a” when I use it in php exec. But, I consistently get
   the empty string returned. Is there something I could be doing wrong? Thanks.
 * [https://wordpress.org/plugins/wp-exec-php/](https://wordpress.org/plugins/wp-exec-php/)

The topic ‘Does get_query_var() work in php exec?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-exec-php.svg)
 * [WP exec PHP](https://wordpress.org/plugins/wp-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-exec-php/reviews/)

## Tags

 * [Query String](https://wordpress.org/support/topic-tag/query-string/)

 * 0 replies
 * 1 participant
 * Last reply from: [tim227](https://wordpress.org/support/users/tim227/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/does-get_query_var-work-in-php-exec/)
 * Status: not resolved