Timeline for how can get database name in wordpress?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2021 at 11:32 | comment | added | abhij89 | The constant DB_NAME is not always defined - when the HyperDB plugin is in use (replaces WPDB class to support multiple databases), then having a single DB_NAME constant wouldn't make sense | |
Sep 13, 2015 at 23:33 | comment | added | ahnbizcad |
what scope do you need to be in, or what library or object do you need to load in order for DB_NAME to be recognized, and not be an uninitialized constant?
|
|
Jun 2, 2014 at 9:38 | comment | added | ahmetlutfu | This is best answer. | |
Jun 2, 2014 at 7:27 | history | answered | Chittaranjan | CC BY-SA 3.0 |