Linking wp-config from theme folder
-
Hi guys,
I’m developing a theme, and for some reason, I need to call:
wp-config.phpI used
require_once( ABSPATH . 'wp-config.php' );
But for using ABSPATH (I need ABSPATH, bcoz wp-config.php may change it’s location (even up the WP root dir) – so I’m using ABSPATH for finding it) I need to call wp-load.php:
include '../../../wp-load.php';
This worked fine, but it’ll not work if wp-content change its location (it works with changing wp-content name).Tried linking wp-config dif. ways, but this one (using ABSPATH) worked well so far.
So my question is: is there any good way to call wp-config from theme folder, even if directory structure of wp blog change?
Thanks for help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Linking wp-config from theme folder’ is closed to new replies.