Title: variables in wp-config.php
Last modified: August 18, 2016

---

# variables in wp-config.php

 *  [renegadelatino](https://wordpress.org/support/users/renegadelatino/)
 * (@renegadelatino)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/variables-in-wp-configphp/)
 * I would like to know if it is possible to use variables in wp-config.php.
 * I am trying to use $user_level in an if statement in the wp-config.php file. 
   I have made the if statement using $user_ID and $user_ID comes back false even
   though I am logged in. I am thinking maybe I need to declare something gloabl
   or require_once something. Any suggestions?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/variables-in-wp-configphp/#post-476524)
 * Why do you want to modify the wp-config file?
 * It would be better if you describe what exactly do you want to achieve, what 
   is your end-goal… and then somebody will direct you in the right direction.
 *  Thread Starter [renegadelatino](https://wordpress.org/support/users/renegadelatino/)
 * (@renegadelatino)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/variables-in-wp-configphp/#post-476556)
 * I am making an if statement so that if $user_level > 9, the admin panel is set
   to English and else it is set to Español.
 * I am running a bilingual blog. I would like my admin panel in English but all
   other users want it in Español. Currently I am testing the Gengo and Polyglot
   plugins, and others if necessary, to see which plugin works best for what I need.
   But in the mean time a simple if statement in wp-config.php is what I am looking
   for.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/variables-in-wp-configphp/#post-476557)
 * Gengo is the way to go: I posted [this article](http://crosscultural.transycan.net/blog/archives/2006/11/08/wordpress-as-a-real-multilingual-cms-with-gengo/)
   yesterday 🙂
 * Sorry, I am not a coder, but never heard about conditionals in wp-config…

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

The topic ‘variables in wp-config.php’ is closed to new replies.

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/variables-in-wp-configphp/#post-476557)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
