Title: markwheeler's Replies | WordPress.org

---

# markwheeler

  [  ](https://wordpress.org/support/users/markwheeler/)

 *   [Profile](https://wordpress.org/support/users/markwheeler/)
 *   [Topics Started](https://wordpress.org/support/users/markwheeler/topics/)
 *   [Replies Created](https://wordpress.org/support/users/markwheeler/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/markwheeler/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/markwheeler/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/markwheeler/engagements/)
 *   [Favorites](https://wordpress.org/support/users/markwheeler/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Setting JavaScript variables](https://wordpress.org/support/topic/setting-javascript-variables/)
 *  Thread Starter [markwheeler](https://wordpress.org/support/users/markwheeler/)
 * (@markwheeler)
 * [19 years ago](https://wordpress.org/support/topic/setting-javascript-variables/#post-561280)
 * Thanks very much guys 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Setting JavaScript variables](https://wordpress.org/support/topic/setting-javascript-variables/)
 *  Thread Starter [markwheeler](https://wordpress.org/support/users/markwheeler/)
 * (@markwheeler)
 * [19 years ago](https://wordpress.org/support/topic/setting-javascript-variables/#post-561274)
 * Cheers, just using PHP directly in the script file will probably be best. But
   how do I go about including the appropriate WordPress functions so I can use 
   get_option() to read from the database?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Setting JavaScript variables](https://wordpress.org/support/topic/setting-javascript-variables/)
 *  Thread Starter [markwheeler](https://wordpress.org/support/users/markwheeler/)
 * (@markwheeler)
 * [19 years ago](https://wordpress.org/support/topic/setting-javascript-variables/#post-561128)
 * Would you care to share a little more than that? How DO you set variables in 
   a js file?

Viewing 3 replies - 1 through 3 (of 3 total)