Skip to content

Instantly share code, notes, and snippets.

@topdown
Last active July 10, 2016 18:38
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 topdown/661d69e22441f5f6486774400a423c06 to your computer and use it in GitHub Desktop.
Save topdown/661d69e22441f5f6486774400a423c06 to your computer and use it in GitHub Desktop.
Load WordPress hooks, filters and APIs in a bin file for processing forms and other data
<?php
// Don't load theme data IE css and other features
define( 'WP_USE_THEMES', false );
/*
* Loads the WordPress Environment and Template
* Change PATH_TO_WP to the path of the following file
*/
require( 'PATH_TO_WP/wp-blog-header.php' );
// Now do your processing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment