Created
May 27, 2015 22:51
-
-
Save sxalexander/9ead78236b34772df76a to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/***** | |
* WordPress Bootstrap Example | |
*****/ | |
// prevent remote execution | |
if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) exit(); | |
/** Load WordPress Bootstrap, relative to the script directory */ | |
require_once( dirname( __FILE__ ) . '/../wp-load.php' ); | |
/** Load wpdb and or other libraries */ | |
require_once( dirname(__FILE__) . '/../wp-includes/wp-db.php'); | |
require_once( dirname(__FILE__) . '/../wp-includes/rewrite.php'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment