Created
January 25, 2016 16:59
-
-
Save jordinebot/2f83f55f5c908a4e3004 to your computer and use it in GitHub Desktop.
Load Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Load Wordpress in any file inside wp-content/ */ | |
defined('ABSPATH') or define('ABSPATH', preg_replace('/\/wp-content\/.*/', '', __DIR__) . '/'); | |
require_once ABSPATH . 'wp-load.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's the best way to do it. Anyway, don't do it.