Title: Global Variable
Last modified: October 14, 2021

---

# Global Variable

 *  [chunterbytejam](https://wordpress.org/support/users/chunterbytejam/)
 * (@chunterbytejam)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/global-variable-2/)
 * Hi. I want to run php only on pages with the body class. Is there a global variable
   I can test against? Thanks!

The topic ‘Global Variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-body-class.svg)
 * [Custom Body Class](https://wordpress.org/plugins/wp-custom-body-class/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-body-class/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-body-class/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-body-class/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-body-class/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [chunterbytejam](https://wordpress.org/support/users/chunterbytejam/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/global-variable-2/)
 * Status: not resolved