[wp-hackers] Bootstrap WordPress

Muhammad Ali mjsafoxy at gmail.com
Thu Apr 12 21:53:46 UTC 2012


<?php
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*
> basics.
>
> -Otto
>
>
>
> On Thu, Apr 12, 2012 at 12:35 PM, Robert Lusby <nanogwp at gmail.com> wrote:
>> Howdy,
>>
>> 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?
>>
>> Thanks,
>> Robert
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list