Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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