[wp-hackers] Is WP_INSTALLING constant here to stay?
Carsten Bach
mail at carsten-bach.de
Tue Jan 22 15:57:48 UTC 2013
Hello Dino,
I'm not sure if WP_INSTALLING is the right way to go, but I'd have a
look into the SHORTINIT constant for your reason.
By defining SHORTINIT you'll force a short-init with only core WP, not
the entire framework stack.
Have a look at http://wpengineer.com/2449/load-minimum-of-wordpress/ for
some short explanation or
http://wordpress.org/support/topic/load-wp-core-in-another-framework-shortinit-wp_query
for an example of an external App using the WP core.
Good luck
Carsten
Am 22.01.2013 14:17, schrieb Dino Termini:
> Good morning, all,
>
> for a plugin I'm working on, I need to user some WordPress functions in
> an external file. I'm loading it with the usual wp-load.php include, but
> apparently some plugins don't like that, and throw a fatal error,
> breaking my code. Thanks to St. Google, I found out that there's a
> constant that can be used to tell Wordpress to not load any plugins:
>
> define('WP_INSTALLING', true);
>
> Now my question to core developers is if this approach is correct and if
> I can rely on it for the foreseeable future. Otherwise, my question
> becomes: what is the best way to load just the CORE without all the
> stuff added by plugins and themes?
>
> Thank you,
> Dino
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
--
Carsten Bach
Mediengestaltung
Amstetter Straße 24
70329 Stuttgart
Telefon 0711 / 933 24 912
Mobil 0173 / 83 66 858
Fax 0711 / 933 24 651
mail at carsten-bach.de
More information about the wp-hackers
mailing list