Title: Using variables
Last modified: August 21, 2016

---

# Using variables

 *  Resolved [kkkk45](https://wordpress.org/support/users/kkkk45/)
 * (@kkkk45)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/using-variables-1/)
 * is possible to use a variable instead of a fixed numerical value?
 * [http://wordpress.org/plugins/universal-star-rating/](http://wordpress.org/plugins/universal-star-rating/)

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

 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/using-variables-1/#post-4182717)
 * Can you please give me an example for your request?
 * Where does this variable come from?
 * At this time the plugin can not use any variables. But this could be a nice feature
   for the next update. Please provide the needed information.
 * Thanks
 *  Thread Starter [kkkk45](https://wordpress.org/support/users/kkkk45/)
 * (@kkkk45)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/using-variables-1/#post-4182721)
 * I solve it doing this little modification to your plugin (sorry….)
 * //—————————————————————–//
    // Insert function for one rating // //—————————————————————–//
 *  function insertUSR() {
    global $media; // (the variable) $atts[0] = $media; //
   Read default settings $usrMaxStars = get_option(‘usrMaxStars’); $usrStarImage
   = get_option(‘usrStarImage’); $usrStarText = get_option(‘usrStarText’);…….. ———————————————————————-
 * and calling the function:
    global $media; [usr][/usr]
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/using-variables-1/#post-4182722)
 * Thanks for the info.
 * I’m fine with your modification but this is nothing I can change for everyone.
   I thought there could be a way to define a variable inside the admin panel so
   that this is a possibility for everyone.
 * Any Ideas?

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

The topic ‘Using variables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/universal-star-rating.svg)
 * [Universal Star Rating](https://wordpress.org/plugins/universal-star-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/universal-star-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/universal-star-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/universal-star-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/universal-star-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/universal-star-rating/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Chasil](https://wordpress.org/support/users/chasil/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/using-variables-1/#post-4182722)
 * Status: resolved