Override Current Theme Setting in wp_config.php
-
02-11-2019 - |
Question
I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like
define('WP_HOME', 'http://someotherdomain.com');
This will override the 'home' option in the wp_options table. There is an option called 'current_theme' that stores the name of the currently selected theme. I'm wondering if there's a way to override this from the wp_config file and if so, will this actually change the theme.
I've tried
define('WP_CURRENT_THEME', 'someothertheme');
but it doesn't work.
I need to do this in our development environment because the database is shared among two developers. I need to be able to work on one theme, while the other developer works on another theme.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange