how to use is_admin in wp-config.php
-
I am trying to choose different databases for admin and user to decrease the load on database.
in wp-config.php when i am trying to use the code
if(is_admin())
{
define(‘DB_NAME’, ‘wp_db’);
}I am getting an error of
Fatal error: Call to undefined function is_admin() in D:\xampp\htdocs\wordpress\wp-config.php on line 24How to use is_admin() function in the wp-config.php file?
can someone please help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to use is_admin in wp-config.php’ is closed to new replies.