Skip to content

Instantly share code, notes, and snippets.

@benthebear
Created July 29, 2017 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benthebear/e74b4918d51bdd99b38ec42c78edd980 to your computer and use it in GitHub Desktop.
Save benthebear/e74b4918d51bdd99b38ec42c78edd980 to your computer and use it in GitHub Desktop.
<?php
/* ATTENTION!
* This Script is intended for redirect Use only.
*/
// Boot Wordpress
// Raise memory
define( 'WP_MEMORY_LIMIT','2G' );
ini_set( 'memory_limit', '-1' );
// Get Path to Load load Wordpress
$paths = explode( 'wp-content',__FILE__ );
require_once( $paths[0] . 'wp-load.php' );
// Get us the WordPress database class
global $wpdb;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment