Skip to content

Instantly share code, notes, and snippets.

@tonykwon
Created September 25, 2014 17:01
Show Gist options
  • Save tonykwon/a3fc8ffc2a1fe537789a to your computer and use it in GitHub Desktop.
Save tonykwon/a3fc8ffc2a1fe537789a to your computer and use it in GitHub Desktop.
Bootstrap WordPress :)
<?php
define('WP_ROOT', $_SERVER['DOCUMENT_ROOT']); // you can specify where the WordPress is
define('WP_USE_THEMES', false);
/* bootstrap WordPress */
require_once WP_ROOT . '/' . 'wp-load.php';
/* bootstrap is done :) */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment