Skip to content

Instantly share code, notes, and snippets.

@sxalexander
Created May 27, 2015 22:51
Show Gist options
  • Save sxalexander/9ead78236b34772df76a to your computer and use it in GitHub Desktop.
Save sxalexander/9ead78236b34772df76a to your computer and use it in GitHub Desktop.
<?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