[wp-hackers] Bootstrap WordPress
mjsafoxy at gmail.com
Thu Apr 12 21:53:46 UTC 2012
require_once('../wp-load.php'); //Include wp-load.php, change to where
the file actually is relative.
//use Wordpress functions as standard.
On 12 April 2012 19:53, Otto <otto at ottodestruct.com> wrote:
> Include the wp-load.php file.
> If you want just the basics and not all the various functions, you can
> define SHORTINIT to true beforehand. But that's just the *very*
> On Thu, Apr 12, 2012 at 12:35 PM, Robert Lusby <nanogwp at gmail.com> wrote:
>> What do you guys consider as the current "best practise" way, to 'boot
>> strap' WordPress for use in another application/framework.
>> E.g., to give access to function suchs as "wp_insert_post", get_post and the
>> WPDB class, but without loading the theme?
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers